1
0
鏡像自 https://github.com/minetest-mods/mesecons.git 已同步 2025-06-30 23:00:22 +02:00

Fix Luacontroller’s print() (#422)

Because of working inside the sandbox, it was unable to print tables.
此提交包含在:
Vitaliy
2018-07-23 15:53:32 +03:00
提交者 GitHub
父節點 334400a541
當前提交 d4e05f33af

查看文件

@ -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()