From 0aabfddce9d057678bd3b05856ed5d47552819c8 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 8 Apr 2023 15:34:38 +0200 Subject: [PATCH] Hotfix 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 e448f89..b00f7a9 100644 --- a/src/de/steamwar/lobby/jumpandrun/GhostJumpAndRun.java +++ b/src/de/steamwar/lobby/jumpandrun/GhostJumpAndRun.java @@ -127,7 +127,9 @@ public class GhostJumpAndRun implements Listener { if (!iterator.hasNext() || entityPlayer == null) { replayRunnable.cancel(); replayRunnable = null; - entityServer.close(); + if (entityServer != null) { + entityServer.close(); + } entityServer = null; entityPlayer = null; return;