1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2024-12-30 23:17:53 +02:00
ComfyFactorio/utils/print_override.lua
2020-11-29 21:26:49 +01:00

20 lines
307 B
Lua

local Public = {}
local locale_string = {'', nil, nil}
local raw_print = print
function print(str, tag)
if tag then
locale_string[2] = tag
else
locale_string[2] = '[PRINT]'
end
locale_string[3] = str
log(locale_string)
end
Public.raw_print = raw_print
return Public