mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 16:54:06 +00:00
Fixed the floating flowers with effect being affected by enchanted soil.
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user