Protect modification of candles and cake as building.

Closes #1880.
This commit is contained in:
wizjany 2022-02-26 18:43:04 -05:00
parent dca0515104
commit e05d42371f
No known key found for this signature in database
GPG Key ID: 1DB5861C03B76B5E

View File

@ -1491,7 +1491,10 @@ public static boolean isItemAppliedToBlock(Material item, Material block) {
public static boolean isConsideredBuildingIfUsed(Material type) {
return type == Material.REPEATER
|| type == Material.COMPARATOR
|| Tag.FLOWER_POTS.isTagged(type);
|| type == Material.CAKE
|| Tag.FLOWER_POTS.isTagged(type)
|| Tag.CANDLES.isTagged(type)
|| Tag.CANDLE_CAKES.isTagged(type);
}
/**