fixed stack tracebacks always being returned to lua

This commit is contained in:
Florian Nücke 2014-01-13 22:01:41 +01:00
parent 02e387cd85
commit ae60f1a5c1

View File

@ -1018,8 +1018,8 @@ class Computer(val owner: tileentity.Computer) extends ManagedComponent with Con
lua.pushBoolean(true) lua.pushBoolean(true)
lua.pushNil() lua.pushNil()
lua.pushString(e.getMessage) lua.pushString(e.getMessage)
if (true) { if (Settings.get.logLuaCallbackErrors) {
lua.pushString(e.getStackTraceString) lua.pushString(e.getStackTraceString.replace("\r\n", "\n"))
4 4
} }
else 3 else 3