Skip to content

Commit

Permalink
Added some defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
sarhatabaot committed Apr 26, 2024
1 parent dafc1f5 commit 3944234
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void reloadConfig() {
}

public static boolean getEnabled(@NotNull Material material) {
return config.getBoolean(material.name().toLowerCase() + ".enabled");
return config.getBoolean(material.name().toLowerCase() + ".enabled", true);
}


Expand All @@ -66,7 +66,7 @@ public static boolean getEnabled(@NotNull Material material) {
}

public static boolean getRipe(@NotNull Material material) {
return config.getBoolean(material.name().toLowerCase() + ".replant-when-ripe");
return config.getBoolean(material.name().toLowerCase() + ".replant-when-ripe", false);
}

public void setActiveLanguage(final String locale) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private void applyReplant(@NotNull BlockBreakEvent event) {
Util.replant(event.getPlayer(), event.getBlock(), slot);
}
}


private boolean isRipe(@NotNull Block block) {
Ageable age = (Ageable) block.getBlockData();
Expand Down

0 comments on commit 3944234

Please sign in to comment.