forked from Wuzzy/realtest_mt5
Localize some accidental global vars
This commit is contained in:
parent
9365816fe4
commit
aa0a0a9f4a
|
@ -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",
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue