Skip to content

Commit

Permalink
Allow empty objective on score remove, because the game allows it
Browse files Browse the repository at this point in the history
  • Loading branch information
NEZNAMY committed Jul 13, 2024
1 parent 2137224 commit 6a48c16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private boolean handleSet(@NotNull String objectiveName, @NotNull String holder,
}

private boolean handleReset(@Nullable String objectiveName, @NotNull String holder) {
if (objectiveName == null) {
if (objectiveName == null || objectiveName.isEmpty()) {
for (DownstreamObjective objective : objectives.values()) {
objective.removeScore(holder);
}
Expand Down

0 comments on commit 6a48c16

Please sign in to comment.