mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 20:22:36 +00:00
Fix autosmelt smelting even if the black can't be harvested with the tool #1053
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user