Fix warning messages on for the default tools ignoring supressMissingToolLogs config. Usually set by Iguana Tweaks. Otherwise they spam that everytime NEI queries for tools.

This commit is contained in:
Bernhard Bonigl committed 2014-08-07 12:52:02 +02:00
1 parent 9b9fb14098
commit b38c8a0ab9
1 file changed
+2 -2
@@ -24,6 +24,7 @@ import tconstruct.library.TConstructRegistry;
import tconstruct.library.crafting.ToolBuilder;
import tconstruct.library.modifier.IModifyable;
import tconstruct.library.modifier.ItemModifier;
import tconstruct.tools.TinkerTools;
import tconstruct.tools.entity.FancyEntityItem;
import cofh.api.energy.IEnergyContainerItem;
import cpw.mods.fml.relauncher.Side;
@@ -556,8 +557,7 @@ public abstract class ToolCore extends Item implements IEnergyContainerItem, IMo
ItemStack tool = ToolBuilder.instance.buildTool(new ItemStack(getHeadItem(), 1, id), new ItemStack(getHandleItem(), 1, id), accessoryStack, extraStack, name + getToolName());
if (tool == null)
{
boolean supress = false; //TODO: Find this for iguana tweaks
if (!supress)
if (TinkerTools.supressMissingToolLogs)
{
TConstructRegistry.logger.error("Creative builder failed tool for " + name + this.getToolName());
TConstructRegistry.logger.error("Make sure you do not have item ID conflicts");