9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-28 11:29:12 +00:00

[ci skip]chore: rename hopper counter enable config (#644)

This commit is contained in:
MC_XiaoHei
2025-08-01 22:00:24 +08:00
committed by GitHub
parent cb6cd65886
commit 8d9a5b2f1b
3 changed files with 5 additions and 4 deletions

View File

@@ -625,8 +625,9 @@ public final class LeavesConfig {
@GlobalConfigCategory("hopper-counter")
public static class HopperCounterConfig {
@RemovedConfig(name = "hopper-counter", category = "modify", transform = true)
@GlobalConfig("enabled")
public boolean enabled = false;
@RemovedConfig(name = "enabled", category = {"modify", "hopper-counter"}, transform = true)
@GlobalConfig("enable")
public boolean enable = false;
@GlobalConfig("unlimited-speed")
public boolean unlimitedSpeed = false;

View File

@@ -101,6 +101,6 @@ public class CounterCommand implements LeavesSubcommand {
@Override
public boolean isEnabled() {
return LeavesConfig.modify.hopperCounter.enabled;
return LeavesConfig.modify.hopperCounter.enable;
}
}

View File

@@ -339,6 +339,6 @@ public class HopperCounter {
}
public static boolean isEnabled() {
return LeavesConfig.modify.hopperCounter.enabled && enabled;
return LeavesConfig.modify.hopperCounter.enable && enabled;
}
}