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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
} }