+1
-6
@@ -99,12 +99,7 @@ public class UpdateTeamsPacket implements MinecraftPacket {
|
|||||||
} else {
|
} else {
|
||||||
byteBuf.writeByte((byte) color);
|
byteBuf.writeByte((byte) color);
|
||||||
}
|
}
|
||||||
|
// Fallthrough since players are at the end of the packet!
|
||||||
ProtocolUtils.writeVarInt(byteBuf, players.size());
|
|
||||||
for (String player : players) {
|
|
||||||
ProtocolUtils.writeString(byteBuf, player);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case ADD_PLAYER, REMOVE_PLAYER:
|
case ADD_PLAYER, REMOVE_PLAYER:
|
||||||
ProtocolUtils.writeVarInt(byteBuf, players.size());
|
ProtocolUtils.writeVarInt(byteBuf, players.size());
|
||||||
for (String player : players) {
|
for (String player : players) {
|
||||||
|
|||||||
Reference in New Issue
Block a user