From 8b3df2abf4a5e01d7a536de558588d26a382a63a Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 19 Nov 2013 05:50:43 +1300 Subject: [PATCH] Fix a error with casting --- src/me/libraryaddict/disguise/PacketsManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/PacketsManager.java b/src/me/libraryaddict/disguise/PacketsManager.java index 7294ed94..bc419394 100644 --- a/src/me/libraryaddict/disguise/PacketsManager.java +++ b/src/me/libraryaddict/disguise/PacketsManager.java @@ -644,12 +644,12 @@ public class PacketsManager { PacketContainer packet = new PacketContainer(Packets.Server.ENTITY_METADATA); StructureModifier mods = packet.getModifier(); mods.write(0, entity.getEntityId()); - List watchableList = new ArrayList(); + List watchableList = new ArrayList(); byte b = (byte) (0 | 1 << 5); if (event.getPlayer().isSprinting()) b = (byte) (b | 1 << 3); watchableList.add(new WrappedWatchableObject(0, b)); - mods.write(1, watchableList); + packet.getWatchableCollectionModifier().write(0, watchableList); try { ProtocolLibrary.getProtocolManager().sendServerPacket(event.getPlayer(), packet, false); } catch (Exception ex) {