Skip to content

Commit

Permalink
Fixed JoinGame packet for 1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nan1t committed Jul 7, 2022
1 parent fa63d3f commit 90364e4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 90364e4

Please # to comment.