Prevent steam drill from mining indestructible blocks (bedrock!)

dev
Arona Jones 2015-08-22 10:44:21 +01:00
parent 9d1e79c32b
commit 030e7c137b
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public class ItemSteamDrill extends ItemSteamTool
if (nblock.getBlockHardness(world, xPos, yPos, zPos) != 0.0D)
this.consumeSteamFromCanister(player);
if (!world.isRemote && (result != null))
if (!world.isRemote && (result != null) && nblock.getBlockHardness(world, xPos, yPos, zPos) != -1)
{
world.setBlockToAir(xPos, yPos, zPos);
world.spawnEntityInWorld(new EntityItem(world, xPos + 0.5, yPos + 0.5, zPos + 0.5, result.copy()));