SteamWar/FightSystem
Archiviert
13
1

Hotfix Techhider NPE

Dieser Commit ist enthalten in:
yoyosource 2021-07-26 21:10:01 +02:00
Ursprung bd5fb0d7c7
Commit 97a6e43098

Datei anzeigen

@ -88,7 +88,7 @@ public class TechHider extends StateDependent {
public void onPacketReceiving(PacketEvent e) { public void onPacketReceiving(PacketEvent e) {
Player p = e.getPlayer(); Player p = e.getPlayer();
if(p.getGameMode() == GameMode.SPECTATOR) if(p == null || p.getGameMode() == GameMode.SPECTATOR)
e.setCancelled(true); e.setCancelled(true);
} }
}); });