Skip to content

Commit

Permalink
Add extra hide_entity check
Browse files Browse the repository at this point in the history
I guess Citizens NPCs like to behave differently
  • Loading branch information
Morphan1 committed Feb 20, 2016
1 parent 7cd08a5 commit addf0ae
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -63,7 +63,10 @@ else if (packet instanceof PacketPlayOutWindowItems) {
}
else if (packet instanceof PacketPlayOutNamedEntitySpawn) {
PacketPlayOutNamedEntitySpawn nesPacket = (PacketPlayOutNamedEntitySpawn) packet;
// int entityId = named_spawn_entityId.getInt(nesPacket);
int entityId = named_spawn_entityId.getInt(nesPacket);
if (entityIsHiding(player, entityId)) {
return true;
}
UUID entityUUID = (UUID) named_spawn_entityUUID.get(nesPacket);
final Entity entity = ((WorldServer) player.getWorld()).getEntity(entityUUID);
if (entity instanceof EntityFakePlayer) {
Expand Down

0 comments on commit addf0ae

Please sign in to comment.