mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-21 16:09:19 +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 class OptimizeRandomTick extends ConfigModules {
|
||||||
|
|
||||||
public String getBasePath() {
|
public String getBasePath() {
|
||||||
return EnumConfigCategory.PERF.getBaseKeyName() + ".optimise-random-tick";
|
return EnumConfigCategory.PERF.getBaseKeyName() + ".optimize-random-tick";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Experimental
|
@Experimental
|
||||||
@@ -15,6 +15,12 @@ public class OptimizeRandomTick extends ConfigModules {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onLoaded() {
|
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);
|
enabled = config.getBoolean(getBasePath(), enabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user