Set variable after cloning packet, fixes #318
This commit is contained in:
parent
754538a490
commit
41848d61ec
@ -109,7 +109,7 @@ public class PacketListenerViewSelfDisguise extends PacketAdapter {
|
|||||||
transformed.sendDelayed(observer);
|
transformed.sendDelayed(observer);
|
||||||
|
|
||||||
if (event.getPacketType() == Server.ENTITY_METADATA) {
|
if (event.getPacketType() == Server.ENTITY_METADATA) {
|
||||||
event.setPacket(packet.deepClone());
|
event.setPacket(packet = packet.deepClone());
|
||||||
|
|
||||||
for (WrappedWatchableObject watch : packet.getWatchableCollectionModifier().read(0)) {
|
for (WrappedWatchableObject watch : packet.getWatchableCollectionModifier().read(0)) {
|
||||||
if (watch.getIndex() == 0) {
|
if (watch.getIndex() == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user