From e50701da021c710805a1b65c433214589856581a Mon Sep 17 00:00:00 2001 From: Ben Spiers Date: Mon, 8 Jul 2013 23:03:02 +0100 Subject: [PATCH] Hopefully fix NPE with Immibis' microblocks and avoid issue #152 recurring --- common/mekanism/common/BlockTransmitter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/mekanism/common/BlockTransmitter.java b/common/mekanism/common/BlockTransmitter.java index 00fb69e83..e1e8c1da9 100644 --- a/common/mekanism/common/BlockTransmitter.java +++ b/common/mekanism/common/BlockTransmitter.java @@ -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);