Fix #300: Fruits on leaves do not ripen

This commit is contained in:
mezz committed 2014-10-26 22:20:51 -07:00
1 parent f47d349056
commit 50a155aa2a
1 file changed
+4 -1
@@ -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 */