From 6879f10de66b31533ef88d0eee1d4b4797f47bc6 Mon Sep 17 00:00:00 2001 From: wizjany Date: Mon, 21 Jun 2021 16:58:10 -0400 Subject: [PATCH] Fix crop growth config option. --- .../worldguard/bukkit/listener/WorldGuardBlockListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardBlockListener.java b/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardBlockListener.java index db64b953..1692339a 100644 --- a/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardBlockListener.java +++ b/worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/listener/WorldGuardBlockListener.java @@ -628,7 +628,7 @@ private void handleGrow(Cancellable event, Location loc, Material type) { WorldConfiguration wcfg = getWorldConfig(loc.getWorld()); if (Materials.isCrop(type)) { if (wcfg.disableCropGrowth) { - event.setCancelled(false); + event.setCancelled(true); return; }