1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-07 08:52:59 +00:00

Add config option to disable certain error messages

This commit is contained in:
SquidDev
2017-05-16 15:59:09 +01:00
parent a0b6cbb671
commit efb0065ebd
6 changed files with 25 additions and 6 deletions

View File

@@ -99,7 +99,10 @@ public class CommandAPI implements ILuaAPI
}
catch( Throwable t )
{
ComputerCraft.log.error( "Error running command.", t );
if( ComputerCraft.logPeripheralErrors )
{
ComputerCraft.log.error( "Error running command.", t );
}
return new Object[]{ false, createOutput( "Java Exception Thrown: " + t.toString() ) };
}
}
@@ -210,7 +213,10 @@ public class CommandAPI implements ILuaAPI
catch( Throwable t )
{
// Ignore buggy command
ComputerCraft.log.error( "Error running command.", t );
if( ComputerCraft.logPeripheralErrors )
{
ComputerCraft.log.error( "Error running command.", t );
}
}
}
}

View File

@@ -119,7 +119,7 @@ public abstract class CCTurtleProxyCommon implements ICCTurtleProxy
}
catch( Exception e )
{
ComputerCraft.log.error("Error checking stackability of items", e);
ComputerCraft.log.error("Error getting computer upgrade item", e);
}
}
return null;