Fixed lua ENV stuff and non saving globals

This commit is contained in:
Cooldude2606
2018-06-22 19:48:18 +01:00
parent 251249dcdc
commit 1d132b92fb
10 changed files with 16 additions and 8 deletions

View File

@@ -143,6 +143,7 @@ end
-- @function errorHandler
-- @tparam string err the error passed by the err control
error.addHandler('Discord Emit',function(err)
if not game then return error(error()) end
local color = Color and Color.to_hex(defines.textcolor.bg) or '0x0'
Sync.emit_embeded{title='SCRIPT ERROR',color=color,description='There was an error in the script @Developers ',Error=err}
end)