Don't use constructors for entity_look packet
This commit is contained in:
		| @@ -1389,11 +1389,11 @@ public class PacketsManager { | |||||||
|                         StructureModifier<Object> mods = rotation.getModifier(); |                         StructureModifier<Object> mods = rotation.getModifier(); | ||||||
|                         mods.write(0, entity.getEntityId()); |                         mods.write(0, entity.getEntityId()); | ||||||
|                         mods.write(1, yaw); |                         mods.write(1, yaw); | ||||||
|                         packets = new PacketContainer[] { |                         PacketContainer look = new PacketContainer(PacketType.Play.Server.ENTITY_LOOK); | ||||||
|                                 ProtocolLibrary |                         look.getIntegers().write(0, entity.getEntityId()); | ||||||
|                                         .getProtocolManager() |                         look.getBytes().write(0, yaw); | ||||||
|                                         .createPacketConstructor(PacketType.Play.Server.ENTITY_LOOK, entity.getEntityId(), yaw, |                         look.getBytes().write(1, pitch); | ||||||
|                                                 pitch).createPacket(entity.getEntityId(), yaw, pitch), rotation }; |                         packets = new PacketContainer[] { look, rotation }; | ||||||
|                     } |                     } | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user