Fixed packets being cloned and sent multiple times for armorstands
This commit is contained in:
		| @@ -51,7 +51,6 @@ public class PacketHandlerMovement implements IPacketHandler { | ||||
|         ArrayList<PacketContainer> toAdd = new ArrayList<>(); | ||||
|  | ||||
|         for (PacketContainer packet : packets.getPackets()) { | ||||
|             for (int i = 0; i < len; i++) { | ||||
|             for (int standId : disguise.getArmorstandIds()) { | ||||
|                 PacketContainer packet2 = packet.shallowClone(); | ||||
|                 packet2.getIntegers().write(0, standId); | ||||
| @@ -63,7 +62,6 @@ public class PacketHandlerMovement implements IPacketHandler { | ||||
|                 toAdd.add(packet2); | ||||
|             } | ||||
|         } | ||||
|         } | ||||
|  | ||||
|         packets.getPackets().addAll(toAdd); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user