Skip to content

Commit

Permalink
Add WORLD_IMMUTABLE flag to spectator mode (GeyserMC#1034)
Browse files Browse the repository at this point in the history
Prevents the client from trying to interact with blocks
  • Loading branch information
Camotoy authored Jul 27, 2020
1 parent b9846fe commit fe75320
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public void translate(ServerNotifyClientPacket packet, GeyserSession session) {
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
}

Expand Down

0 comments on commit fe75320

Please sign in to comment.