mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 04:52:26 +00:00
Fix #300: Fruits on leaves do not ripen
This commit is contained in:
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 */
|
||||
|
||||
Reference in new issue
Block a user