Skip to content

Commit

Permalink
修复米奇妙妙屋传送
Browse files Browse the repository at this point in the history
  • Loading branch information
windy664 authored Jul 29, 2024
1 parent 7bd8779 commit 9de7f76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/windy/teleportoffset/TeleportOffset.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void run() {
int retries = 0;
@Override
public void run() {
if (retries >= 3 || !player.isOnline()) {
if (retries >= 2 || !player.isOnline()) {
this.cancel();
return;
}
Expand All @@ -141,7 +141,7 @@ public void run() {
retries++;
}
}
}.runTaskTimer(TeleportOffset.this, 0L, 10L); // 每0.5秒检查一次
}.runTaskTimer(TeleportOffset.this, 0L, 5L); // 每0.5秒检查一次
}
} else {
getLogger().info("玩家 " + player.getName() + " 不在线或不存在!");
Expand Down

0 comments on commit 9de7f76

Please sign in to comment.