mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Use damageDropped to determine meta of dropped block for smelting recipies with autosmelt. #947
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user