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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user