Merge pull request #1870 from da3dsoul/6.0.x
Fix isFullFluidBlock -> fix Floodgates
This commit is contained in:
commit
daae576b87
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue