Fix autosmelt smelting even if the black can't be harvested with the tool #1053

This commit is contained in:
Bernhard Bonigl committed 2014-10-05 17:42:43 +02:00
1 parent 89796fde81
commit 0430391446
1 file changed
+5
@@ -11,6 +11,7 @@ import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeHooks;
import tconstruct.library.ActiveToolMod;
import tconstruct.library.tools.*;
import tconstruct.util.config.PHConstruct;
@@ -63,6 +64,10 @@ public class TActiveOmniMod extends ActiveToolMod
return false;
int meta = world.getBlockMetadata(x, y, z);
if(!block.getMaterial().isToolNotRequired() && !ForgeHooks.canToolHarvestBlock(block, meta, stack))
return false;
meta = block.damageDropped(meta);
if (tags.getBoolean("Lava") && block.quantityDropped(meta, 0, random) != 0)