Skip to content
Snippets Groups Projects
Unverified Commit d4e05f33 authored by Vitaliy's avatar Vitaliy Committed by GitHub
Browse files

Fix Luacontroller’s print() (#422)

Because of working inside the sandbox, it was unable to print tables.
parent 334400a5
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,11 @@ end
-------------------------
local function safe_print(param)
local string_meta = getmetatable("")
local sandbox = string_meta.__index
string_meta.__index = string -- Leave string sandbox temporarily
print(dump(param))
string_meta.__index = sandbox -- Restore string sandbox
end
local function safe_date()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment