Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
Fix crash when cracked is null
Browse files Browse the repository at this point in the history
  • Loading branch information
DAMcraft committed Feb 13, 2024
1 parent c1c7c5f commit 8dc4db7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static void update() {

for (HistoricPlayersHud hud : huds) {
hud.players = Objects.requireNonNullElseGet(resp.players, List::of);
hud.isCracked = resp.cracked;
hud.isCracked = resp.cracked != null && resp.cracked;
}
}
}

0 comments on commit 8dc4db7

Please sign in to comment.