diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 613963fc67..ec269fcbc1 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -591,10 +591,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { if (hiddenPlayers.containsKey(player.getName())) return; hiddenPlayers.put(player.getName(), player); - if (getHandle().netServerHandler == null) { - return; - } - //remove this player from the hidden player's EntityTrackerEntry EntityTracker tracker = ((WorldServer) entity.world).tracker; EntityPlayer other = ((CraftPlayer) player).getHandle(); @@ -613,10 +609,6 @@ public class CraftPlayer extends CraftHumanEntity implements Player { if (!hiddenPlayers.containsKey(player.getName())) return; hiddenPlayers.remove(player.getName()); - if (getHandle().netServerHandler == null) { - return; - } - EntityTracker tracker = ((WorldServer) entity.world).tracker; EntityPlayer other = ((CraftPlayer) player).getHandle(); EntityTrackerEntry entry = (EntityTrackerEntry) tracker.trackedEntities.get(other.id);