Allow netherwart to be harvested by kamas and scythes
Why does it just have to be different and not use BlockCrop
@@ -4,6 +4,7 @@ import com.google.common.collect.ImmutableSet;
import net.minecraft.block.Block;
import net.minecraft.block.BlockCrops;
+import net.minecraft.block.BlockNetherWart;
import net.minecraft.block.BlockReed;
import net.minecraft.block.state.IBlockState;
import net.minecraft.enchantment.EnchantmentHelper;
@@ -130,6 +131,9 @@ public class Kama extends AoeToolCore {
if(state.getBlock() instanceof BlockCrops && ((BlockCrops) state.getBlock()).isMaxAge(state)) {
canHarvest = true;
}
+ if(state.getBlock() instanceof BlockNetherWart && state.getValue(BlockNetherWart.AGE) == 3) {
+ canHarvest = true;
+ }
return canHarvest;
}
