Add some sanity checks to the Sapling1 pickBlock() function.

Closes #276
This commit is contained in:
CovertJaguar committed 2014-10-08 08:18:46 -07:00
1 parent cbf8822d1e
commit ef3a62a9e7
1 file changed
+2
@@ -149,6 +149,8 @@ public class BlockSapling extends BlockTreeContainer {
@Override
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) {
TileSapling sapling = getSaplingTile(world, x, y, z);
if (sapling == null || sapling.getTree() == null)
return null;
return PluginArboriculture.treeInterface.getMemberStack(sapling.getTree(), EnumGermlingType.SAPLING.ordinal());
}