Skip to content

Commit

Permalink
Fix warning messages on for the default tools ignoring supressMissing…
Browse files Browse the repository at this point in the history
…ToolLogs config. Usually set by Iguana Tweaks. Otherwise they spam that everytime NEI queries for tools.
  • Loading branch information
bonii-xx committed Aug 7, 2014
1 parent 9b9fb14 commit b38c8a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tconstruct/library/tools/ToolCore.java
Expand Up @@ -24,6 +24,7 @@
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;
Expand Down Expand Up @@ -556,8 +557,7 @@ public void buildTool (int id, String name, List list)
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");
Expand Down

0 comments on commit b38c8a0

Please sign in to comment.