From eff759463d0cb2fe1435ae02feee88f9c4f4a239 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 17 Sep 2020 11:19:51 -0400 Subject: [PATCH] Fix error in piston mode migration (#1013) --- .../java/me/ryanhamshire/GriefPrevention/GriefPrevention.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java b/src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java index d3782ea..82c5775 100644 --- a/src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java +++ b/src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java @@ -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;