From 47366fec948d664e9e37648e973a835a00322363 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 3 Sep 2014 11:41:50 +1200 Subject: [PATCH] Don't use constructors for entity_look packet --- .../disguise/utilities/PacketsManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/me/libraryaddict/disguise/utilities/PacketsManager.java index f0a6a3d5..b40b1afc 100644 --- a/src/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -1389,11 +1389,11 @@ public class PacketsManager { StructureModifier mods = rotation.getModifier(); mods.write(0, entity.getEntityId()); mods.write(1, yaw); - packets = new PacketContainer[] { - ProtocolLibrary - .getProtocolManager() - .createPacketConstructor(PacketType.Play.Server.ENTITY_LOOK, entity.getEntityId(), yaw, - pitch).createPacket(entity.getEntityId(), yaw, pitch), rotation }; + PacketContainer look = new PacketContainer(PacketType.Play.Server.ENTITY_LOOK); + look.getIntegers().write(0, entity.getEntityId()); + look.getBytes().write(0, yaw); + look.getBytes().write(1, pitch); + packets = new PacketContainer[] { look, rotation }; } }