Move repeaters/comparators from use to build.

This should mirror the protection given in WG 5.9.
This commit is contained in:
Wizjany 2015-03-13 23:34:22 -04:00
parent 32132b5b0a
commit a907eb2348

View File

@ -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;
}
/**