only allow glowberries to be farmed, not planted and broken

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

No files matched your search

@@ -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)
{
@@ -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)
)))