From 82838164183def9893a36770a0b4c65bde5de71b Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Sun, 24 Feb 2019 15:53:43 -0300 Subject: [PATCH] Fix team remove --- .../protocols/protocol1_9to1_8/packets/PlayerPackets.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/PlayerPackets.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/PlayerPackets.java index 43301fb23..84cabf12d 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/PlayerPackets.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/PlayerPackets.java @@ -129,7 +129,7 @@ public class PlayerPackets { } if (mode == 0 || mode == 3 || mode == 4) { - String[] players = wrapper.read(Type.STRING_ARRAY); // Players + String[] players = wrapper.passthrough(Type.STRING_ARRAY); // Players final EntityTracker entityTracker = wrapper.user().get(EntityTracker.class); String myName = wrapper.user().get(ProtocolInfo.class).getUsername(); String teamName = wrapper.get(Type.STRING, 0); @@ -149,7 +149,6 @@ public class PlayerPackets { } } } - wrapper.write(Type.STRING_ARRAY, players); } if (mode == 1) { // Remove team