Skip to content

Commit

Permalink
Fix 死循环问题
Browse files Browse the repository at this point in the history
  • Loading branch information
windy664 committed Feb 11, 2024
1 parent be99404 commit ecb4c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/windy/spawnjoin/SpawnJoin.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void onPlayerJoin(PlayerJoinEvent event) {
// 将玩家传送到指定位置
player.teleport(location);
n2++;
if(n2==n){
if(n2>=n){
break;
}
}
Expand Down

0 comments on commit ecb4c31

Please sign in to comment.