From 576be235f77de07abacb0238f6e5ebcdd90b30fa Mon Sep 17 00:00:00 2001 From: da3dsoul Date: Sat, 7 Jun 2014 10:57:19 -0400 Subject: [PATCH] Fix isFullFluidBlock -> fix Floodgates A recommit to 6.0.x instead of master --- common/buildcraft/core/utils/BlockUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/core/utils/BlockUtil.java b/common/buildcraft/core/utils/BlockUtil.java index c318665b..12bd0220 100644 --- a/common/buildcraft/core/utils/BlockUtil.java +++ b/common/buildcraft/core/utils/BlockUtil.java @@ -12,6 +12,7 @@ import java.util.ArrayList; import java.util.List; import net.minecraft.block.Block; +import net.minecraft.block.BlockStaticLiquid; import net.minecraft.entity.item.EntityItem; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; @@ -26,7 +27,6 @@ import net.minecraft.world.WorldServer; import cpw.mods.fml.common.FMLCommonHandler; import net.minecraftforge.event.ForgeEventFactory; -import net.minecraftforge.fluids.BlockFluidBase; import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidContainerRegistry; import net.minecraftforge.fluids.FluidRegistry; @@ -146,7 +146,7 @@ public final class BlockUtil { } public static boolean isFullFluidBlock(Block block, World world, int x, int y, int z) { - if (block instanceof BlockFluidBase || block instanceof IFluidBlock) { + if (block instanceof IFluidBlock || block instanceof BlockStaticLiquid) { return world.getBlockMetadata(x, y, z) == 0; } return false;