Hopefully re-fix #152

This commit is contained in:
Ben Spiers 2013-07-08 23:38:53 +01:00
parent e50701da02
commit 745f7d1f44

View file

@ -139,6 +139,9 @@ public abstract class TileEntityBasicBlock extends TileEntity implements IWrench
@Override
public ItemStack getWrenchDrop(EntityPlayer entityPlayer)
{
return Block.blocksList[getBlockType().blockID].getPickBlock(null, worldObj, xCoord, yCoord, zCoord);
int id = worldObj.getBlockId(xCoord, yCoord, zCoord);
int meta = worldObj.getBlockMetadata(xCoord, yCoord, zCoord);
ItemStack drop = new ItemStack(id, 1, meta);
return drop;
}
}