Added logs for return values in LUA calls from CC

This commit is contained in:
Unknown 2019-05-07 13:39:24 +02:00 committed by unknown
parent a65a00e2d2
commit 2566620522

View file

@ -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();