mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixed lua ENV stuff and non saving globals
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user