Fix error in piston mode migration (#1013)
This commit is contained in:
parent
b5542e24b1
commit
eff759463d
|
|
@ -625,7 +625,7 @@ public class GriefPrevention extends JavaPlugin
|
|||
this.config_blockSkyTrees = config.getBoolean("GriefPrevention.LimitSkyTrees", true);
|
||||
this.config_limitTreeGrowth = config.getBoolean("GriefPrevention.LimitTreeGrowth", false);
|
||||
this.config_pistonMovement = PistonMode.of(config.getString("GriefPrevention.PistonMovement", "CLAIMS_ONLY"));
|
||||
if (config.isBoolean("GriefPrevention.LimitPistonsToLandClaims") && !config.isBoolean("GriefPrevention.LimitPistonsToLandClaims"))
|
||||
if (config.isBoolean("GriefPrevention.LimitPistonsToLandClaims") && !config.getBoolean("GriefPrevention.LimitPistonsToLandClaims"))
|
||||
this.config_pistonMovement = PistonMode.EVERYWHERE_SIMPLE;
|
||||
if (config.isBoolean("GriefPrevention.CheckPistonMovement") && !config.getBoolean("GriefPrevention.CheckPistonMovement"))
|
||||
this.config_pistonMovement = PistonMode.IGNORED;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user