mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2026-02-04 08:26:13 +01:00
Set gamemode to creative for 1.7.x instead of spectator
This commit is contained in:
@@ -100,7 +100,7 @@ public class PacketJoinGame implements PacketOut {
|
|||||||
msg.writeInt(entityId);
|
msg.writeInt(entityId);
|
||||||
|
|
||||||
if (version.fromTo(Version.V1_7_2, Version.V1_7_6)) {
|
if (version.fromTo(Version.V1_7_2, Version.V1_7_6)) {
|
||||||
msg.writeByte(gameMode);
|
msg.writeByte(gameMode == 3 ? 1 : gameMode);
|
||||||
msg.writeByte(dimensionRegistry.getDefaultDimension_1_16().getId());
|
msg.writeByte(dimensionRegistry.getDefaultDimension_1_16().getId());
|
||||||
msg.writeByte(0); // Difficulty
|
msg.writeByte(0); // Difficulty
|
||||||
msg.writeByte(maxPlayers);
|
msg.writeByte(maxPlayers);
|
||||||
|
|||||||
Reference in New Issue
Block a user