From 1aefd5863eb73a27be491e2c69ee1248ed7d7153 Mon Sep 17 00:00:00 2001 From: mezz Date: Fri, 23 Jan 2015 22:56:33 -0800 Subject: [PATCH] Fix #472 Crash with Thaumic Tinkerer Ichorium Axe --- .../forestry/arboriculture/gadgets/ForestryBlockLeaves.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/forestry/arboriculture/gadgets/ForestryBlockLeaves.java b/src/main/java/forestry/arboriculture/gadgets/ForestryBlockLeaves.java index 29d675ab6..d57d4e329 100644 --- a/src/main/java/forestry/arboriculture/gadgets/ForestryBlockLeaves.java +++ b/src/main/java/forestry/arboriculture/gadgets/ForestryBlockLeaves.java @@ -98,7 +98,8 @@ public class ForestryBlockLeaves extends BlockNewLeaf implements ITileEntityProv @Override public void onBlockHarvested(World world, int x, int y, int z, int metadata, EntityPlayer player) { - if (getLeafTile(world, x, y, z).isDecorative()) + TileLeaves leafTile = getLeafTile(world, x, y, z); + if (leafTile == null || leafTile.isDecorative()) return; int fortune = EnchantmentHelper.getFortuneModifier(player);