Skip to content

Commit

Permalink
Fix gameMode being encoded twice instead of previousGameMode in Clien…
Browse files Browse the repository at this point in the history
…tboundLoginPacket (#750)
  • Loading branch information
WinPlay02 authored Aug 15, 2023
1 parent bfb6430 commit d365a4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void serialize(ByteBuf out, MinecraftCodecHelper helper) throws IOExcepti
out.writeInt(this.entityId);
out.writeBoolean(this.hardcore);
out.writeByte(this.gameMode.ordinal());
out.writeByte(GameMode.toNullableId(this.gameMode));
out.writeByte(GameMode.toNullableId(this.previousGamemode));
helper.writeVarInt(out, this.worldNames.length);
for (String worldName : this.worldNames) {
helper.writeString(out, worldName);
Expand Down

0 comments on commit d365a4e

Please sign in to comment.