Set variable after cloning packet, fixes #318

This commit is contained in:
libraryaddict 2018-11-25 18:11:14 +13:00
parent 754538a490
commit 41848d61ec

View File

@ -109,7 +109,7 @@ public class PacketListenerViewSelfDisguise extends PacketAdapter {
transformed.sendDelayed(observer);
if (event.getPacketType() == Server.ENTITY_METADATA) {
event.setPacket(packet.deepClone());
event.setPacket(packet = packet.deepClone());
for (WrappedWatchableObject watch : packet.getWatchableCollectionModifier().read(0)) {
if (watch.getIndex() == 0) {