mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-05 16:08:39 +01:00
Remove hardcore bit in JoinGamePacket
This commit is contained in:
parent
f811f1efef
commit
ec33478cc3
@ -23,15 +23,11 @@ public class JoinGamePacket implements ServerPacket {
|
||||
|
||||
@Override
|
||||
public void write(BinaryWriter writer) {
|
||||
int gameModeId = gameMode.getId();
|
||||
if (gameMode.isHardcore())
|
||||
gameModeId |= 8;
|
||||
|
||||
writer.writeInt(entityId);
|
||||
writer.writeBoolean(MinecraftServer.isHardcoreLook());
|
||||
writer.writeByte((byte) gameModeId);
|
||||
writer.writeByte(gameMode.getId());
|
||||
//Previous Gamemode
|
||||
writer.writeByte((byte) gameModeId);
|
||||
writer.writeByte(gameMode.getId());
|
||||
|
||||
//array of worlds
|
||||
writer.writeVarInt(1);
|
||||
|
Loading…
Reference in New Issue
Block a user