mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-23 11:06:13 +01:00
Move repeaters/comparators from use to build.
This should mirror the protection given in WG 5.9.
This commit is contained in:
parent
32132b5b0a
commit
a907eb2348
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user