Skip to content
Permalink
Browse files

Fixed NetherWart in the farming ICs

  • Loading branch information...
me4502 committed Aug 18, 2019
1 parent 28d69c6 commit 47feb5db6090df8da3a007ad9f373edbc56fdceb
@@ -78,7 +78,7 @@ public void terraform() {
|| b.getType() == Material.POTATOES
|| b.getType() == Material.MELON_STEM
|| b.getType() == Material.BEETROOTS
|| b.getType() == Material.NETHER_WART_BLOCK
|| b.getType() == Material.NETHER_WART
|| b.getType() == Material.COCOA
|| b.getType() == Material.PUMPKIN_STEM)
&& ((Ageable) b.getBlockData()).getAge() < ((Ageable) b.getBlockData()).getMaximumAge()) {
@@ -82,7 +82,7 @@ public boolean harvestable(Block block) {
case CARROTS:
case POTATOES:
case BEETROOTS:
case NETHER_WART_BLOCK:
case NETHER_WART:
case COCOA:
Ageable ageable = (Ageable) block.getBlockData();
return ageable.getAge() == ageable.getMaximumAge();
@@ -222,7 +222,7 @@ protected boolean plantBlockAt(ItemStack item, Block block) {
case PUMPKIN_SEEDS:
block.setType(Material.PUMPKIN_STEM);
return true;
case NETHER_WART_BLOCK:
case NETHER_WART:
block.setType(Material.NETHER_WART);
return true;
case POTATO:
@@ -127,7 +127,7 @@ public static Location getBlockCentre(Block block) {
if(CraftBookPlugin.inst().getRandom().nextInt(50) == 0)
drops.add(new ItemStack(Material.POISONOUS_POTATO, 1));
break;
case NETHER_WART_BLOCK:
case NETHER_WART:
drops.add(new ItemStack(Material.NETHER_WART, 2 + CraftBookPlugin.inst().getRandom().nextInt(3)));
break;
case SUGAR_CANE:

0 comments on commit 47feb5d

Please sign in to comment.
You can’t perform that action at this time.