13
0

Hotfix GhostJumpAndRun
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2023-04-08 15:17:15 +02:00
Ursprung 745c69bd6a
Commit 5ca8381482

Datei anzeigen

@ -124,7 +124,7 @@ public class GhostJumpAndRun implements Listener {
replayRunnable = new BukkitRunnable() {
@Override
public void run() {
if (!iterator.hasNext()) {
if (!iterator.hasNext() || entityPlayer == null) {
replayRunnable.cancel();
replayRunnable = null;
entityServer.close();
@ -132,9 +132,7 @@ public class GhostJumpAndRun implements Listener {
entityPlayer = null;
return;
}
if (entityPlayer != null) {
entityPlayer.move(iterator.next().toLocation(player.getWorld()));
}
entityPlayer.move(iterator.next().toLocation(player.getWorld()));
}
};
replayRunnable.runTaskTimer(LobbySystem.getPlugin(), 1, 2);