Temporarily disable suppression of modded fluids
This commit is contained in:
parent
0f7f0873e4
commit
afa6ccd7f3
|
@ -2,6 +2,7 @@ package WayofTime.bloodmagic.item.sigil;
|
|||
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
|
@ -9,6 +10,7 @@ import net.minecraft.world.World;
|
|||
import WayofTime.bloodmagic.api.Constants;
|
||||
import WayofTime.bloodmagic.tile.TileSpectralBlock;
|
||||
import WayofTime.bloodmagic.util.Utils;
|
||||
import net.minecraftforge.fluids.BlockFluidBase;
|
||||
|
||||
public class ItemSigilSuppression extends ItemSigilToggleableBase
|
||||
{
|
||||
|
@ -40,7 +42,10 @@ public class ItemSigilSuppression extends ItemSigilToggleableBase
|
|||
BlockPos blockPos = new BlockPos(x + i, y + j, z + k);
|
||||
IBlockState state = world.getBlockState(blockPos);
|
||||
|
||||
if (Utils.isBlockLiquid(state) && world.getTileEntity(blockPos) == null)
|
||||
// TODO - Change back when BlockFluidBase overrides getStateFromMeta()
|
||||
// Temporary fix to avoid liquid duplication
|
||||
if (state.getBlock() instanceof BlockFluidBase) {/*No-op*/}
|
||||
else if (Utils.isBlockLiquid(state) && world.getTileEntity(blockPos) == null)
|
||||
TileSpectralBlock.createSpectralBlock(world, blockPos, refresh);
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue