add in boolean for plugins to toggle if they remove tools to supress console spam

This commit is contained in:
Progwml6 committed 2013-11-08 17:53:58 -05:00
1 parent 9ac0d28318
commit 4baf524978
5 files changed
+49 -29

No files matched your search

+25 -18
View File
@@ -120,8 +120,11 @@ public class Mattock extends DualHarvestTool
ItemStack tool = ToolBuilder.instance.buildTool(new ItemStack(getHeadItem(), 1, id), new ItemStack(getHandleItem(), 1, id), accessoryStack, extraStack, name + getToolName());
if (tool == null)
{
TConstruct.logger.warning("Creative builder failed tool for " + name + this.getToolName());
TConstruct.logger.warning("Make sure you do not have item ID conflicts");
if (!TContent.supressMissingToolLogs)
{
TConstruct.logger.warning("Creative builder failed tool for " + name + this.getToolName());
TConstruct.logger.warning("Make sure you do not have item ID conflicts");
}
}
else
{
@@ -141,24 +144,28 @@ public class Mattock extends DualHarvestTool
}
return true;
}
@Override
public boolean willAllowOffhandWeapon() {
return false;
}
public boolean willAllowOffhandWeapon ()
{
return false;
}
@Override
public boolean willAllowShield() {
return false;
}
@Override
public boolean willAllowShield ()
{
return false;
}
@Override
public boolean isOffhandHandDualWeapon() {
return false;
}
@Override
public boolean isOffhandHandDualWeapon ()
{
return false;
}
@Override
public boolean sheatheOnBack() {
return true;
}
@Override
public boolean sheatheOnBack ()
{
return true;
}
}