Few Edits to fix bugs

This commit is contained in:
Cooldude2606
2018-01-03 21:31:18 +00:00
parent 1b0409ebe3
commit f0271234f6
3 changed files with 17 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ _error = error
error = function(err)
if _G.discord_emit and game then
local color = _G.Color and Color.to_hex(defines.text_color.bg) or '0x0'
discord_emit{title='SCRIPT ERROR',color=color,description=err}
discord_emit{title='SCRIPT ERROR',color=color,description='There was an error in the script @Developers ',Error=err}
elseif _G.Game and game then
if Game.print_all(err) == 0 then
_error(err)