mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-10-26 14:23:57 +00:00
Add some sanity checks to the Sapling1 pickBlock() function.
Closes #276
This commit is contained in:
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());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user