diff --git a/src/main/java/ru/nanit/limbo/protocol/packets/play/PacketJoinGame.java b/src/main/java/ru/nanit/limbo/protocol/packets/play/PacketJoinGame.java index a51f527a..7dd0d588 100644 --- a/src/main/java/ru/nanit/limbo/protocol/packets/play/PacketJoinGame.java +++ b/src/main/java/ru/nanit/limbo/protocol/packets/play/PacketJoinGame.java @@ -99,7 +99,7 @@ public void setFlat(boolean flat) { public void encode(ByteMessage msg, Version version) { msg.writeInt(entityId); - if (version.fromTo(Version.V1_8, Version.V1_9_1)) { + if (version.fromTo(Version.V1_8, Version.V1_9)) { msg.writeByte(gameMode); msg.writeByte(dimensionRegistry.getDefaultDimension_1_16().getId()); msg.writeByte(0); // Difficulty @@ -108,7 +108,7 @@ public void encode(ByteMessage msg, Version version) { msg.writeBoolean(reducedDebugInfo); } - if (version.fromTo(Version.V1_9_2, Version.V1_13_2)) { + if (version.fromTo(Version.V1_9_1, Version.V1_13_2)) { msg.writeByte(gameMode); msg.writeInt(dimensionRegistry.getDefaultDimension_1_16().getId()); msg.writeByte(0); // Difficulty