Skip to content

Commit

Permalink
Fix potential NPE when unloading Visibility Status
Browse files Browse the repository at this point in the history
  • Loading branch information
ZockerAxel committed May 22, 2022
1 parent d7bc25e commit 4cb96b5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ public boolean getVisibilityStatus(Player player) {
* @param player The Player to Unload Visibility
*/
public void unloadVisibilityStatus(Player player) {
if(savedVisibilityStatus == null) return;
savedVisibilityStatus.remove(player.getUniqueId().toString());
}

Expand Down

0 comments on commit 4cb96b5

Please sign in to comment.