Skip to content

Commit

Permalink
fix crash in standard mode
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusAntons committed Jun 6, 2024
1 parent a867149 commit 84f407b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public static void renderBingo(GuiGraphics graphics, boolean mouseHover, Positio
boolean isGoalCompleted = state.and(clientTeam);

final List<Integer> colors = switch (clientGame.renderMode()) {
case FANCY -> Collections.singletonList(isGoalCompleted ? Integer.valueOf(0x55ff55) : goal.specialType().incompleteColor);
case FANCY -> Collections.singletonList(isGoalCompleted ? Integer.valueOf(0x55ff55) : Objects.requireNonNullElse(goal.specialType().incompleteColor, 0));
case ALL_TEAMS -> {
if (!state.any()) {
yield Collections.emptyList();
Expand Down

0 comments on commit 84f407b

Please sign in to comment.