mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 10:51:55 -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.pushNil()
|
||||
lua.pushString(e.getMessage)
|
||||
if (true) {
|
||||
lua.pushString(e.getStackTraceString)
|
||||
if (Settings.get.logLuaCallbackErrors) {
|
||||
lua.pushString(e.getStackTraceString.replace("\r\n", "\n"))
|
||||
4
|
||||
}
|
||||
else 3
|
||||
|
Loading…
x
Reference in New Issue
Block a user