fix: can not assign global variable again

master
Riceball LEE 2022-07-11 16:30:17 +08:00
parent 721732f149
commit c3a724537f
No known key found for this signature in database
GPG Key ID: 10F15E84852CB868
1 changed files with 1 additions and 3 deletions

View File

@ -7,9 +7,7 @@ local WORLD_PATH = minetest.get_worldpath() .. "/"
local defaultName = "config.yml"
-- export the global yaml object
yaml = rawget(_G, MOD_NAME)
if (not yaml) then
if (not rawget(_G, MOD_NAME)) then
yaml = {}
local function defaults(t1, t2)
if (not t2) then return t1 end