mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-26 06:11:40 +01:00
Fixed replenish
This commit is contained in:
parent
a83805a51b
commit
8a8523d11f
@ -24,6 +24,9 @@ public class Replenish extends EcoEnchant {
|
||||
|
||||
if(!(block.getBlockData() instanceof Ageable)) return;
|
||||
|
||||
if(block.getType().equals(Material.SUGAR_CANE) || block.getType().equals(Material.SWEET_BERRY_BUSH))
|
||||
return;
|
||||
|
||||
Ageable data = (Ageable) block.getBlockData();
|
||||
if(data.getAge() != data.getMaximumAge()) {
|
||||
event.setDropItems(false);
|
||||
|
Loading…
Reference in New Issue
Block a user