9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-19 15:09:25 +00:00

typo optimize-random-tick config

This commit is contained in:
hayanesuru
2025-07-10 18:35:36 +09:00
parent ada68f0d1a
commit 53f6cb4e4d

View File

@@ -7,7 +7,7 @@ import org.dreeam.leaf.config.annotations.Experimental;
public class OptimizeRandomTick extends ConfigModules {
public String getBasePath() {
return EnumConfigCategory.PERF.getBaseKeyName() + ".optimise-random-tick";
return EnumConfigCategory.PERF.getBaseKeyName() + ".optimize-random-tick";
}
@Experimental
@@ -15,6 +15,12 @@ public class OptimizeRandomTick extends ConfigModules {
@Override
public void onLoaded() {
Boolean old = config.getBoolean(EnumConfigCategory.PERF.getBaseKeyName() + ".optimise-random-tick");
if (old != null && old) {
enabled = config.getBoolean(getBasePath(), true);
return;
}
enabled = config.getBoolean(getBasePath(), enabled);
}
}