Added logs for return values in LUA calls from CC
This commit is contained in:
parent
a65a00e2d2
commit
2566620522
1 changed files with 6 additions and 1 deletions
|
@ -431,7 +431,12 @@ public abstract class TileEntityAbstractInterfaced extends TileEntityAbstractBas
|
|||
|
||||
// we separate the proxy from the logs so children can override the proxy without having to handle the logs themselves
|
||||
try {
|
||||
return CC_callMethod(methodName, arguments);
|
||||
final Object[] result = CC_callMethod(methodName, arguments);
|
||||
if (WarpDriveConfig.LOGGING_LUA) {
|
||||
WarpDrive.logger.info(String.format("[CC] LUA call is returning %s",
|
||||
Commons.format(result)));
|
||||
}
|
||||
return result;
|
||||
} catch (final Exception exception) {
|
||||
if (WarpDriveConfig.LOGGING_LUA) {
|
||||
exception.printStackTrace();
|
||||
|
|
Loading…
Reference in a new issue