Hopefully fix NPE with Immibis' microblocks and avoid issue #152 recurring

This commit is contained in:
Ben Spiers 2013-07-08 23:03:02 +01:00
parent 73627f675a
commit e50701da02

View file

@ -355,7 +355,8 @@ public class BlockTransmitter extends Block
public ItemStack dismantleBlock(World world, int x, int y, int z, boolean returnBlock)
{
ItemStack itemStack = getPickBlock(null, world, x, y, z);
int meta = world.getBlockMetadata(x, y, z);
ItemStack itemStack = new ItemStack(blockID, 1, meta);
world.setBlockToAir(x, y, z);