Added nether wart support for harvesting
This commit is contained in:
parent
0b827da7c4
commit
c32de47be3
1 changed files with 3 additions and 6 deletions
|
@ -2,12 +2,7 @@ package buildcraft.core.crops;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.*;
|
||||||
import net.minecraft.block.BlockCrops;
|
|
||||||
import net.minecraft.block.BlockDoublePlant;
|
|
||||||
import net.minecraft.block.BlockMelon;
|
|
||||||
import net.minecraft.block.BlockMushroom;
|
|
||||||
import net.minecraft.block.BlockTallGrass;
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
import net.minecraft.init.Blocks;
|
import net.minecraft.init.Blocks;
|
||||||
import net.minecraft.item.ItemBlock;
|
import net.minecraft.item.ItemBlock;
|
||||||
|
@ -72,6 +67,8 @@ public class CropHandlerPlantable implements ICropHandler {
|
||||||
return true;
|
return true;
|
||||||
} else if (block instanceof BlockCrops) {
|
} else if (block instanceof BlockCrops) {
|
||||||
return meta == 7;
|
return meta == 7;
|
||||||
|
} else if (block instanceof BlockNetherWart) {
|
||||||
|
return meta == 3;
|
||||||
} else if (block instanceof IPlantable) {
|
} else if (block instanceof IPlantable) {
|
||||||
if (y > 0 && blockAccess.getBlock(x, y - 1, z) == block) {
|
if (y > 0 && blockAccess.getBlock(x, y - 1, z) == block) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue