Skip to content

Commit

Permalink
优化变量名
Browse files Browse the repository at this point in the history
  • Loading branch information
windy664 committed Feb 11, 2024
1 parent ecb4c31 commit 6a817f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/windy/spawnjoin/SpawnJoin.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ public void onPlayerJoin(PlayerJoinEvent event) {

if (world != null) {
Location location = new Location(world, x, y, z);
int n2 = 0;
int i = 0;
while (player.getLocation().equals(location)) {
// 将玩家传送到指定位置
player.teleport(location);
n2++;
if(n2>=n){
i++;
if(i >= n){
break;
}
}
Expand Down

0 comments on commit 6a817f5

Please sign in to comment.