From 50a155aa2acf08e62b072876bef3ba95a0a586db Mon Sep 17 00:00:00 2001 From: mezz Date: Sun, 26 Oct 2014 22:20:51 -0700 Subject: [PATCH] Fix #300: Fruits on leaves do not ripen --- .../forestry/arboriculture/gadgets/ForestryBlockLeaves.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/forestry/arboriculture/gadgets/ForestryBlockLeaves.java b/src/main/java/forestry/arboriculture/gadgets/ForestryBlockLeaves.java index e8ebfcd2c..ec1fb5fbd 100644 --- a/src/main/java/forestry/arboriculture/gadgets/ForestryBlockLeaves.java +++ b/src/main/java/forestry/arboriculture/gadgets/ForestryBlockLeaves.java @@ -189,9 +189,12 @@ public class ForestryBlockLeaves extends BlockNewLeaf implements ITileEntityProv @Override public void updateTick(World world, int x, int y, int z, Random random) { - if (getLeafTile(world, x, y, z).isDecorative()) + TileLeaves tileLeaves = getLeafTile(world, x, y, z); + if (tileLeaves == null || tileLeaves.isDecorative()) return; + super.updateTick(world, x, y, z, random); + tileLeaves.onBlockTick(); } /* RENDERING */