From 431e1497bd0ee269e3f9e255c43ee0e50fd5b172 Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Thu, 4 Sep 2014 00:19:51 +0200 Subject: [PATCH] Use damageDropped to determine meta of dropped block for smelting recipies with autosmelt. #947 --- src/main/java/tconstruct/tools/TActiveOmniMod.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/tconstruct/tools/TActiveOmniMod.java b/src/main/java/tconstruct/tools/TActiveOmniMod.java index 35f65d63..2ba58db2 100644 --- a/src/main/java/tconstruct/tools/TActiveOmniMod.java +++ b/src/main/java/tconstruct/tools/TActiveOmniMod.java @@ -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);