From 97a6e430989e09fb96643526dce5022e26d724b6 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 26 Jul 2021 21:10:01 +0200 Subject: [PATCH] Hotfix Techhider NPE --- .../src/de/steamwar/fightsystem/utils/TechHider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/utils/TechHider.java b/FightSystem_Main/src/de/steamwar/fightsystem/utils/TechHider.java index 3a3308e..9f8e8a4 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/utils/TechHider.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/utils/TechHider.java @@ -88,7 +88,7 @@ public class TechHider extends StateDependent { public void onPacketReceiving(PacketEvent e) { Player p = e.getPlayer(); - if(p.getGameMode() == GameMode.SPECTATOR) + if(p == null || p.getGameMode() == GameMode.SPECTATOR) e.setCancelled(true); } });