New Feature

Mud balls can now be fired from dispensers.
This commit is contained in:
Amnet 2013-04-06 13:16:04 +02:00
commit ba1c173093

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);
}
}