Skip to content

Commit

Permalink
[Conditions] Fix conditions without true/false defined not refreshing…
Browse files Browse the repository at this point in the history
… correctly
  • Loading branch information
NEZNAMY committed Nov 2, 2024
1 parent c0dde2e commit a342b23
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public ConditionsSection(@NotNull ConfigurationFile config) {
continue;
}
String type = getString(SECTION + "." + conditionName + ".type");
String yes = String.valueOf(getString(SECTION + "." + conditionName + ".true"));
String no = String.valueOf(getString(SECTION + "." + conditionName + ".false"));
String yes = getString(SECTION + "." + conditionName + ".true", "true");
String no = getString(SECTION + "." + conditionName + ".false", "false");
if (list.size() >= 2 && type == null) {
startupWarn(String.format("Condition \"%s\" has multiple conditions defined, but is missing \"type\" attribute. Using AND.", conditionName));
}
Expand Down

0 comments on commit a342b23

Please sign in to comment.