Skip to content

Commit

Permalink
[Conditions] Fix warning from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NEZNAMY committed Nov 2, 2024
1 parent a342b23 commit 1d603ae
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ public ConditionsSection(@NotNull ConfigurationFile config) {
continue;
}
String type = getString(SECTION + "." + conditionName + ".type");
String yes = getString(SECTION + "." + conditionName + ".true", "true");
String no = getString(SECTION + "." + conditionName + ".false", "false");
String yes = getString(SECTION + "." + conditionName + ".true");
if (yes == null) yes = "true";
String no = getString(SECTION + "." + conditionName + ".false");
if (no == null) no = "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 1d603ae

Please sign in to comment.