diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/v1_8to1_9/rewriter/PlayerPacketRewriter1_9.java b/common/src/main/java/com/viaversion/viaversion/protocols/v1_8to1_9/rewriter/PlayerPacketRewriter1_9.java index 594b6e130..7e50a3d01 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/v1_8to1_9/rewriter/PlayerPacketRewriter1_9.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/v1_8to1_9/rewriter/PlayerPacketRewriter1_9.java @@ -196,7 +196,9 @@ public class PlayerPacketRewriter1_9 { handler(wrapper -> { EntityTracker1_9 tracker = wrapper.user().getEntityTracker(Protocol1_8To1_9.class); - tracker.setGameMode(GameMode.getById(wrapper.get(Types.UNSIGNED_BYTE, 0))); //Set player gamemode + short gamemodeId = wrapper.get(Types.UNSIGNED_BYTE, 0); + gamemodeId &= -9; // remove the hardcore mode flag + tracker.setGameMode(GameMode.getById(gamemodeId)); //Set player gamemode }); // Track player's dimension