make quarry check for BlockLiquid

This commit is contained in:
AEnterprise 2014-03-10 17:43:12 +01:00
parent 7445ce797c
commit 518e411190
2 changed files with 3 additions and 2 deletions

View file

@ -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);
}
}

View file

@ -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);
}
/**