Hopefully fix NPE with Immibis' microblocks and avoid issue #152 recurring
This commit is contained in:
parent
73627f675a
commit
e50701da02
1 changed files with 2 additions and 1 deletions
|
@ -355,7 +355,8 @@ public class BlockTransmitter extends Block
|
||||||
|
|
||||||
public ItemStack dismantleBlock(World world, int x, int y, int z, boolean returnBlock)
|
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);
|
world.setBlockToAir(x, y, z);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue