Skip to content

Commit

Permalink
fix config comments
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Nov 3, 2024
1 parent 964f253 commit 778984f
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ public SnowballModule(String configPath, boolean defEnabled, String comment) {
this.config = SnowballFight.config();
this.scheduling = SnowballFight.scheduling();

if (comment == null || comment.isEmpty()) {
this.enabled_in_config = config.getBoolean(configPath + ".enable", defEnabled);
} else {
this.enabled_in_config = config.getBoolean(configPath + ".enable", defEnabled, comment);
}
this.enabled_in_config = config.getBoolean(configPath + ".enable", defEnabled);
if (comment != null) config.master().addComment(configPath, comment);

String[] paths = configPath.split("\\.");
if (paths.length <= 2) {
Expand Down

0 comments on commit 778984f

Please sign in to comment.