Fixed the floating flowers with effect being affected by enchanted soil.

This commit is contained in:
Lizbeth Rika committed 2015-02-02 17:52:18 +00:00
1 parent fb7f88c385
commit b1155a8eb0
2 files changed
+10 -2

No files matched your search

@@ -16,10 +16,14 @@ import vazkii.botania.common.item.block.ItemBlockSpecialFlower;
public class TileFloatingSpecialFlower extends TileSpecialFlower implements IFloatingFlower {
@Override
public boolean isOnSpecialSoil() {
return false;
}
@Override
public ItemStack getDisplayStack() {
return ItemBlockSpecialFlower.ofType(subTileName);
}
}
@@ -90,11 +90,15 @@ public class TileSpecialFlower extends TileMod implements IWandBindable, ISubTil
}
subTile.onUpdate();
if(worldObj.getBlock(xCoord, yCoord - 1, zCoord) == ModBlocks.enchantedSoil)
if(isOnSpecialSoil())
subTile.onUpdate();
}
}
public boolean isOnSpecialSoil() {
return worldObj.getBlock(xCoord, yCoord - 1, zCoord) == ModBlocks.enchantedSoil;
}
@Override
public boolean canUpdate() {
return subTile == null || subTile.canUpdate();