only allow glowberries to be farmed, not planted and broken

This commit is contained in:
destro174 2022-02-14 10:08:35 +01:00
parent 35251efd29
commit dce8fc9576
2 changed files with 5 additions and 3 deletions

View File

@ -337,9 +337,10 @@ public class Claim
Material.NETHER_WART,
Material.BEETROOTS,
Material.COCOA,
Material.GLOW_BERRIES,
Material.CAVE_VINES,
Material.CAVE_VINES_PLANT);
Material.GLOW_BERRIES//,
// Material.CAVE_VINES,
// Material.CAVE_VINES_PLANT);
);
private static boolean placeableForFarming(Material material)
{

View File

@ -1314,6 +1314,7 @@ class PlayerEventHandler implements Listener
clickedBlockType == Material.ROOTED_DIRT ||
clickedBlockType == Material.STONECUTTER ||
clickedBlockType == Material.SWEET_BERRY_BUSH ||
clickedBlockType == Material.GLOW_BERRIES ||
Tag.CANDLES.isTagged(clickedBlockType) ||
Tag.CANDLE_CAKES.isTagged(clickedBlockType)
)))