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:
@@ -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;
|
||||
|
||||
@@ -101,6 +101,6 @@ public class CounterCommand implements LeavesSubcommand {
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return LeavesConfig.modify.hopperCounter.enabled;
|
||||
return LeavesConfig.modify.hopperCounter.enable;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -339,6 +339,6 @@ public class HopperCounter {
|
||||
}
|
||||
|
||||
public static boolean isEnabled() {
|
||||
return LeavesConfig.modify.hopperCounter.enabled && enabled;
|
||||
return LeavesConfig.modify.hopperCounter.enable && enabled;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user