Fixed bonemeal on Origin Saplings

This commit is contained in:
Adubbz 2013-04-06 22:10:16 +11:00
parent 872b13a632
commit a4893c788c
1 changed files with 3 additions and 4 deletions

View File

@ -153,12 +153,11 @@ public class BonemealUse
if (event.ID == BOPBlocks.originSapling.blockID)
{
event.setResult(Result.ALLOW);
if (!event.world.isRemote)
{
if ((double)event.world.rand.nextFloat() < 0.45D)
{
((BlockOriginSapling)BOPBlocks.originSapling).growTree(event.world, event.X, event.Y, event.Z, event.world.rand);
}
((BlockOriginSapling)BOPBlocks.originSapling).growTree(event.world, event.X, event.Y, event.Z, event.world.rand);
}
}