Bonemeal now only reacts to mangrove saplings when they are on sand

This commit is contained in:
Adubbz 2013-04-06 22:40:41 +11:00
parent ba1c173093
commit 8c1984c967
2 changed files with 22 additions and 19 deletions

View File

@ -214,6 +214,8 @@ public class BonemealUse
} }
if (event.ID == BOPBlocks.mangroveSapling.blockID) if (event.ID == BOPBlocks.mangroveSapling.blockID)
{
if (event.world.getBlockId(event.X, event.Y - 1, event.Z) == Block.sand.blockID)
{ {
event.setResult(Result.ALLOW); event.setResult(Result.ALLOW);
@ -225,6 +227,7 @@ public class BonemealUse
} }
} }
} }
}
if (event.ID == BOPBlocks.acaciaSapling.blockID) if (event.ID == BOPBlocks.acaciaSapling.blockID)
{ {