Hotfix Techhider NPE
Dieser Commit ist enthalten in:
Ursprung
bd5fb0d7c7
Commit
97a6e43098
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren