mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-15 05:30:15 +02:00
Set gamemode to creative for 1.7.x instead of spectator
This commit is contained in:
parent
747da18b72
commit
af304da0f0
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user