Fix interact types

This commit is contained in:
libraryaddict 2015-11-12 14:34:12 +13:00
parent ba7515f761
commit 25f299b490

View File

@ -351,7 +351,8 @@ public class CustomTagFix extends MiniPlugin implements IPacketHandler, NCPHook
{ {
PacketPlayInUseEntity newPacket = new PacketPlayInUseEntity(); PacketPlayInUseEntity newPacket = new PacketPlayInUseEntity();
newPacket.a = entry.getKey(); newPacket.a = entry.getKey();
newPacket.action = EnumEntityUseAction.INTERACT; newPacket.action = usePacket.action == EnumEntityUseAction.ATTACK ? EnumEntityUseAction.ATTACK
: EnumEntityUseAction.INTERACT;
{ {
((CraftPlayer) owner).getHandle().playerConnection.a(newPacket); ((CraftPlayer) owner).getHandle().playerConnection.a(newPacket);