Fix team remove

This commit is contained in:
creeper123123321 2019-02-24 15:53:43 -03:00
parent 44be8b3791
commit 8283816418
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1

View File

@ -129,7 +129,7 @@ public class PlayerPackets {
} }
if (mode == 0 || mode == 3 || mode == 4) { 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); final EntityTracker entityTracker = wrapper.user().get(EntityTracker.class);
String myName = wrapper.user().get(ProtocolInfo.class).getUsername(); String myName = wrapper.user().get(ProtocolInfo.class).getUsername();
String teamName = wrapper.get(Type.STRING, 0); 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 if (mode == 1) { // Remove team