Fix scoreboard issue

This commit is contained in:
Andrew Steinborn
2018-07-30 22:28:07 -04:00
parent ed8a279cd1
commit a45adbc8ec

View File

@@ -168,7 +168,6 @@ public class ScoreboardTeam implements MinecraftPacket {
buf.writeByte(flags); buf.writeByte(flags);
ProtocolUtils.writeString(buf, nameTagVisibility); ProtocolUtils.writeString(buf, nameTagVisibility);
ProtocolUtils.writeString(buf, collisionRule); ProtocolUtils.writeString(buf, collisionRule);
buf.writeByte(color);
if (protocolVersion >= ProtocolConstants.MINECRAFT_1_13) { if (protocolVersion >= ProtocolConstants.MINECRAFT_1_13) {
ProtocolUtils.writeVarInt(buf, color); ProtocolUtils.writeVarInt(buf, color);
ProtocolUtils.writeScoreboardTextComponent(buf, protocolVersion, prefix); ProtocolUtils.writeScoreboardTextComponent(buf, protocolVersion, prefix);