From 745c69bd6a91e478a1fe767cea37a97d6c1110a6 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 8 Apr 2023 15:16:48 +0200 Subject: [PATCH] Fix GhostJumpAndRun --- src/de/steamwar/lobby/jumpandrun/GhostJumpAndRun.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/lobby/jumpandrun/GhostJumpAndRun.java b/src/de/steamwar/lobby/jumpandrun/GhostJumpAndRun.java index 2fb3902..f937c20 100644 --- a/src/de/steamwar/lobby/jumpandrun/GhostJumpAndRun.java +++ b/src/de/steamwar/lobby/jumpandrun/GhostJumpAndRun.java @@ -132,7 +132,9 @@ public class GhostJumpAndRun implements Listener { entityPlayer = null; return; } - entityPlayer.move(iterator.next().toLocation(player.getWorld())); + if (entityPlayer != null) { + entityPlayer.move(iterator.next().toLocation(player.getWorld())); + } } }; replayRunnable.runTaskTimer(LobbySystem.getPlugin(), 1, 2);