Skip to content

Commit

Permalink
Fix #5 Spectators can break blocks (client-side) (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kazzuk authored Sep 19, 2020
1 parent 722afc7 commit 5a4f53b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void update() {
}

pk.setCommandPermission((player.isOp() ? CommandPermission.OPERATOR : CommandPermission.NORMAL));
pk.setPlayerPermission((player.isOp() ? PlayerPermission.OPERATOR : PlayerPermission.MEMBER));
pk.setPlayerPermission((player.isOp() && !player.isSpectator() ? PlayerPermission.OPERATOR : PlayerPermission.MEMBER));
pk.setUniqueEntityId(player.getUniqueId());

Server.broadcastPacket(player.getViewers(), pk);
Expand Down

0 comments on commit 5a4f53b

Please sign in to comment.