mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-15 21:50:14 +02:00
Fixed JoinGame packet for 1.9.1
This commit is contained in:
parent
fa63d3fff9
commit
90364e4f6b
@ -99,7 +99,7 @@ public class PacketJoinGame implements PacketOut {
|
||||
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 class PacketJoinGame implements PacketOut {
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user