Localize some accidental global vars

This commit is contained in:
Wuzzy 2020-03-30 22:59:44 +02:00
parent 9365816fe4
commit aa0a0a9f4a
2 changed files with 6 additions and 2 deletions

View File

@ -58,7 +58,7 @@ function player_update_visuals(pl)
player_model[name] = default_model
player_anim[name] = 0 -- Animation will be set further below immediately
player_sneak[name] = false
prop = {
local prop = {
mesh = default_model,
textures = default_textures,
visual = "mesh",

View File

@ -13,7 +13,11 @@ if io.open(textures_config, "r") ~= nil then
io.close()
end
mf_skins_table = mf_skins_table or {}
if minetest.global_exists("mf_skins_table") then
mf_skins_table = mf_skins_table
else
mf_skins_table = {}
end
local save_skins = function()
print(dump(mf_skins_table))