Set gamemode to creative for 1.7.x instead of spectator

This commit is contained in:
RaphiMC 2022-10-01 00:11:56 +02:00
parent 747da18b72
commit af304da0f0

View File

@ -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);