1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-25 09:49:25 +00:00

Add WORLD_IMMUTABLE flag to spectator mode (#1034)

Prevents the client from trying to interact with blocks
This commit is contained in:
Camotoy
2020-07-27 18:18:22 -04:00
committed by GitHub
parent b9846fe797
commit fe75320d6d

View File

@@ -85,6 +85,7 @@ public class JavaNotifyClientTranslator extends PacketTranslator<ServerNotifyCli
playerFlags.add(AdventureSetting.MAY_FLY);
playerFlags.add(AdventureSetting.NO_CLIP);
playerFlags.add(AdventureSetting.FLYING);
playerFlags.add(AdventureSetting.WORLD_IMMUTABLE);
gameMode = GameMode.CREATIVE; // spectator doesnt exist on bedrock
}