Skip to content

Commit

Permalink
Add null check when setting bypass of player
Browse files Browse the repository at this point in the history
  • Loading branch information
Pugzy committed Oct 29, 2023
1 parent d4409be commit d5f89ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/tc/oc/occ/cheaty/anticheat/GrimManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public GrimManager() {
}

public boolean setPlayerBypass(Player player, boolean shouldBypass) {
if (player == null) return false;
GrimUser grimUser = api.getGrimUser(player);
if (!(grimUser instanceof GrimPlayer)) return false;

Expand Down

0 comments on commit d5f89ab

Please sign in to comment.