mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-25 09:59:15 +00:00
Pluto: check if cactus can survive being placed
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package org.dreeam.leaf.config.modules.opt;
|
||||
|
||||
import org.dreeam.leaf.config.ConfigModules;
|
||||
import org.dreeam.leaf.config.EnumConfigCategory;
|
||||
|
||||
public class CheckSurvivalBeforeGrowth extends ConfigModules {
|
||||
|
||||
public String getBasePath() {
|
||||
return EnumConfigCategory.PERF.getBaseKeyName() + ".check-survival-before-growth";
|
||||
}
|
||||
|
||||
public static boolean cactusCheckSurvivalBeforeGrowth = false;
|
||||
|
||||
@Override
|
||||
public void onLoaded() {
|
||||
cactusCheckSurvivalBeforeGrowth = config.getBoolean(getBasePath() + ".cactus-check-survival", cactusCheckSurvivalBeforeGrowth,
|
||||
config.pickStringRegionBased("""
|
||||
Check if a cactus can survive before growing.""",
|
||||
"""
|
||||
在仙人掌生长前检查其是否能够存活。"""));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user