Possibly fix the entity animations from playing over and over in self disguises

This commit is contained in:
libraryaddict 2013-12-15 02:46:08 +13:00
parent b026f30087
commit 3e4f581943

View File

@ -759,7 +759,8 @@ public class PacketsManager {
|| event.getPacketType() == PacketType.Play.Server.ENTITY_TELEPORT || event.getPacketType() == PacketType.Play.Server.ENTITY_TELEPORT
|| event.getPacketType() == PacketType.Play.Server.ENTITY_HEAD_ROTATION || event.getPacketType() == PacketType.Play.Server.ENTITY_HEAD_ROTATION
|| event.getPacketType() == PacketType.Play.Server.ENTITY_EFFECT || event.getPacketType() == PacketType.Play.Server.ENTITY_EFFECT
|| event.getPacketType() == PacketType.Play.Server.ENTITY_EQUIPMENT) { || event.getPacketType() == PacketType.Play.Server.ENTITY_EQUIPMENT
|| event.getPacketType() == PacketType.Play.Server.ANIMATION) {
event.setCancelled(true); event.setCancelled(true);
} }