Merge pull request #283 from RebelMythik/master

Fixed Replenish not breaking Cactus, Bamboo, and Chorus Flowers
This commit is contained in:
Will FP 2022-08-13 11:59:58 +02:00 committed by GitHub
commit aee13c0f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,11 +27,15 @@ public class Replenish extends EcoEnchant {
return;
}
if (block.getType() == Material.SUGAR_CANE || block.getType() == Material.SWEET_BERRY_BUSH) {
if (block.getType() == Material.GLOW_BERRIES || block.getType() == Material.SWEET_BERRY_BUSH) {
return;
}
if (block.getType() == Material.GLOW_BERRIES) {
if (block.getType() == Material.CACTUS || block.getType() == Material.BAMBOO) {
return;
}
if (block.getType() == Material.CHORUS_FLOWER || block.getType() == Material.SUGAR_CANE) {
return;
}