diff --git a/src/minecraft/biomesoplenty/blocks/BlockBOPColorizedSapling.java b/src/minecraft/biomesoplenty/blocks/BlockBOPColorizedSapling.java index 47a28f6d4..0e5a7fabb 100644 --- a/src/minecraft/biomesoplenty/blocks/BlockBOPColorizedSapling.java +++ b/src/minecraft/biomesoplenty/blocks/BlockBOPColorizedSapling.java @@ -74,7 +74,7 @@ public class BlockBOPColorizedSapling extends BlockSapling int id = world.getBlockId(x, y - 1, z); int meta = itemStack.getItemDamage(); - if (itemStack.itemID == blockID) { + if (itemStack.itemID == blockID && id != 0) { switch (meta) { case 1: // Mangrove diff --git a/src/minecraft/biomesoplenty/blocks/BlockBOPSapling.java b/src/minecraft/biomesoplenty/blocks/BlockBOPSapling.java index 22a03d94e..2bcf6e247 100644 --- a/src/minecraft/biomesoplenty/blocks/BlockBOPSapling.java +++ b/src/minecraft/biomesoplenty/blocks/BlockBOPSapling.java @@ -81,14 +81,14 @@ public class BlockBOPSapling extends BlockSapling int id = world.getBlockId(x, y - 1, z); int meta = itemStack.getItemDamage(); - if (itemStack.itemID == blockID) { + if (itemStack.itemID == blockID && id != 0) { switch (meta) { case 7: // Loftwood return id == Blocks.holyGrass.get().blockID || id == Block.grass.blockID; default: - return id == Block.grass.blockID || id == Block.dirt.blockID || id == Block.tilledField.blockID /*|| blocksList[id].canSustainPlant(world, x, y - 1, z, ForgeDirection.UP, this)*/; + return id == Block.grass.blockID || id == Block.dirt.blockID || id == Block.tilledField.blockID || blocksList[id].canSustainPlant(world, x, y - 1, z, ForgeDirection.UP, this); } } else return this.canPlaceBlockOnSide(world, x, y, z, side);