mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-28 11:29:12 +00:00
Movable Budding Amethyst bind carpet rule (#561)
This commit is contained in:
@@ -378,8 +378,16 @@ public final class LeavesConfig {
|
||||
public boolean redstoneShearsWrench = true;
|
||||
|
||||
@RemovedConfig(name = "budding-amethyst-can-push-by-piston", category = {}, transform = true)
|
||||
@GlobalConfig("budding-amethyst-can-push-by-piston")
|
||||
public boolean buddingAmethystCanPushByPiston = false;
|
||||
@RemovedConfig(name = "budding-amethyst-can-push-by-piston", category = "modify", transform = true)
|
||||
@GlobalConfig(value = "movable-budding-amethyst", validator = MovableBuddingAmethystValidator.class)
|
||||
public boolean movableBuddingAmethyst = false;
|
||||
|
||||
private static class MovableBuddingAmethystValidator extends BooleanConfigValidator {
|
||||
@Override
|
||||
public void verify(Boolean old, Boolean value) throws IllegalArgumentException {
|
||||
CarpetRules.register(CarpetRule.of("carpet", "movableAmethyst", value));
|
||||
}
|
||||
}
|
||||
|
||||
@RemovedConfig(name = "spectator-dont-get-advancement", category = {}, transform = true)
|
||||
@GlobalConfig("spectator-dont-get-advancement")
|
||||
|
||||
Reference in New Issue
Block a user