mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Add WORLD_IMMUTABLE flag to spectator mode (#1034)
Prevents the client from trying to interact with blocks
This commit is contained in:
parent
b9846fe797
commit
fe75320d6d
1 changed files with 1 additions and 0 deletions
|
@ -85,6 +85,7 @@ public class JavaNotifyClientTranslator extends PacketTranslator<ServerNotifyCli
|
||||||
playerFlags.add(AdventureSetting.MAY_FLY);
|
playerFlags.add(AdventureSetting.MAY_FLY);
|
||||||
playerFlags.add(AdventureSetting.NO_CLIP);
|
playerFlags.add(AdventureSetting.NO_CLIP);
|
||||||
playerFlags.add(AdventureSetting.FLYING);
|
playerFlags.add(AdventureSetting.FLYING);
|
||||||
|
playerFlags.add(AdventureSetting.WORLD_IMMUTABLE);
|
||||||
gameMode = GameMode.CREATIVE; // spectator doesnt exist on bedrock
|
gameMode = GameMode.CREATIVE; // spectator doesnt exist on bedrock
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue