Skip to content

Commit d84fa71

Browse files
authored
fix inconsistent serialize and deserialize in ClientboundPlayerInfoUpdate (#737)
* fix inconsistent serialize and deserialize in ClientboundPlayerInfoUpdatePacket.java (issue #736) * fix writePositionSource always throws IllegalStateException (issue #738)
1 parent ee03049 commit d84fa71

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/github/steveice10/mc/protocol/packet/ingame/clientbound/ClientboundPlayerInfoUpdatePacket.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public void serialize(ByteBuf out, MinecraftCodecHelper helper) {
107107
switch (action) {
108108
case ADD_PLAYER:
109109
helper.writeString(out, entry.getProfile().getName());
110+
helper.writeVarInt(out, entry.getProfile().getProperties().size());
110111
for (GameProfile.Property property : entry.getProfile().getProperties()) {
111112
helper.writeProperty(out, property);
112113
}

0 commit comments

Comments
 (0)