Use damageDropped to determine meta of dropped block for smelting recipies with autosmelt. #947

This commit is contained in:
Bernhard Bonigl committed 2014-09-04 00:19:51 +02:00
1 parent da3c596dd5
commit 431e1497bd
1 file changed
+3 -1
@@ -66,11 +66,13 @@ public class TActiveOmniMod extends ActiveToolMod
private boolean autoSmelt(ToolCore tool, NBTTagCompound tags, ItemStack stack, int x, int y, int z, EntityLivingBase entity)
{
World world = entity.worldObj;
int meta = world.getBlockMetadata(x, y, z);
Block block = world.getBlock(x, y, z);
if (block == null)
return false;
int meta = world.getBlockMetadata(x, y, z);
meta = block.damageDropped(meta);
if (tags.getBoolean("Lava") && block.quantityDropped(meta, 0, random) != 0)
{
int amount = block.quantityDropped(random);