Skip to content

Commit

Permalink
fix borked copypasta, fixes #2061
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 25, 2019
1 parent a48be85 commit 170cce8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -271,7 +271,7 @@ else if (packet instanceof PacketPlayOutEntityTeleport) {
}

public boolean isHidden(Entity entity) {
return e != null && NMSHandler.getEntityHelper().isHidden(player.getBukkitEntity(), entity.getBukkitEntity());
return entity != null && NMSHandler.getEntityHelper().isHidden(player.getBukkitEntity(), entity.getBukkitEntity());
}

public boolean processHiddenEntitiesForPacket(Packet<?> packet) {
Expand Down

0 comments on commit 170cce8

Please sign in to comment.