Fixed NO MORE DESYNCS ON THREADS

This commit is contained in:
Cooldude2606 committed 2017-12-09 11:57:58 +00:00
1 parent 41a25c6464
commit 8701696464
2 files changed
+21 -26

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ Discord: https://discord.gg/r6dC2uK
-- replaces the base error function
_error = error
error = function(err)
if _G.discord_emit then
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}
elseif _G.game then