Merge pull request #359 from mattchance/master

Fix crash when using a wrench on a GasTank
This commit is contained in:
Aidan 2013-11-03 19:48:36 -08:00
commit a23a0844fb

View file

@ -143,9 +143,8 @@ public class BlockGasTank extends BlockContainer
public ItemStack dismantleBlock(World world, int x, int y, int z, boolean returnBlock)
{
TileEntityElectricBlock tileEntity = (TileEntityElectricBlock)world.getBlockTileEntity(x, y, z);
ItemStack itemStack = new ItemStack(Mekanism.GasTank);
ItemStack itemStack = getPickBlock(null, world, x, y, z);
world.setBlockToAir(x, y, z);
if(!returnBlock)