mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
fixed stack tracebacks always being returned to lua
This commit is contained in:
parent
02e387cd85
commit
ae60f1a5c1
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user