make quarry check for BlockLiquid
This commit is contained in:
parent
7445ce797c
commit
518e411190
2 changed files with 3 additions and 2 deletions
|
@ -15,6 +15,7 @@ import java.util.EnumMap;
|
|||
import java.util.TreeMap;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockLiquid;
|
||||
import net.minecraft.entity.EntityList;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
|
@ -300,7 +301,7 @@ public class BuildCraftCore extends BuildCraftMod {
|
|||
for (Object o : Block.blockRegistry) {
|
||||
Block block = (Block) o;
|
||||
|
||||
if (block instanceof BlockFluidBase || block instanceof IFluidBlock || block instanceof IPlantable) {
|
||||
if (block instanceof BlockFluidBase || block instanceof BlockLiquid || block instanceof IPlantable) {
|
||||
BuildCraftAPI.softBlocks.add(block);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ public class BlockUtil {
|
|||
}
|
||||
|
||||
public static boolean isSoftBlock(Block block, World world, int x, int y, int z) {
|
||||
return block == null || BuildCraftAPI.softBlocks.contains(block) || block.isAir(world, x, y, z) || block == Blocks.water || block == Blocks.flowing_water;
|
||||
return block == null || BuildCraftAPI.softBlocks.contains(block) || block.isAir(world, x, y, z);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue