From a907eb23487142f57a52c75c1396a21ca17427e0 Mon Sep 17 00:00:00 2001 From: Wizjany Date: Fri, 13 Mar 2015 23:34:22 -0400 Subject: [PATCH] Move repeaters/comparators from use to build. This should mirror the protection given in WG 5.9. --- .../com/sk89q/worldguard/bukkit/util/Materials.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/util/Materials.java b/src/main/java/com/sk89q/worldguard/bukkit/util/Materials.java index 32b706c4..9c0fd72f 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/util/Materials.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/util/Materials.java @@ -678,10 +678,6 @@ public static boolean isUseFlagApplicable(Material material) { case STONE_BUTTON: return true; case WOOD_BUTTON: return true; case TRIPWIRE: return true; - case DIODE_BLOCK_OFF: return true; - case DIODE_BLOCK_ON: return true; - case REDSTONE_COMPARATOR_OFF: return true; - case REDSTONE_COMPARATOR_ON: return true; case WOODEN_DOOR: return true; case TRAP_DOOR: return true; case FENCE_GATE: return true; @@ -759,7 +755,11 @@ public static boolean isItemAppliedToBlock(Material item, Material block) { * @return true to be considered as used */ public static boolean isConsideredBuildingIfUsed(Material type) { - return type == Material.SAPLING; + return type == Material.SAPLING + || type == Material.DIODE_BLOCK_OFF + || type == Material.DIODE_BLOCK_ON + || type == Material.REDSTONE_COMPARATOR_OFF + || type == Material.REDSTONE_COMPARATOR_ON; } /**