mirror of
https://github.com/minetest-mods/skinsdb.git
synced 2025-01-09 07:30:17 +01:00
fix get_string() on wrong variable
This commit is contained in:
parent
c53158d159
commit
716a9a3f9a
2
api.lua
2
api.lua
@ -5,7 +5,7 @@ function skins.get_player_skin(player)
|
|||||||
local meta = player:get_meta()
|
local meta = player:get_meta()
|
||||||
if meta:get("skinsdb:skin_key") then
|
if meta:get("skinsdb:skin_key") then
|
||||||
-- Move player data prior July 2018 to mod storage
|
-- Move player data prior July 2018 to mod storage
|
||||||
storage:set_string(player:get_player_name(), player:get_string("skinsdb:skin_key"))
|
storage:set_string(player:get_player_name(), meta:get_string("skinsdb:skin_key"))
|
||||||
meta:set_string("skinsdb:skin_key", "")
|
meta:set_string("skinsdb:skin_key", "")
|
||||||
end
|
end
|
||||||
local skin = storage:get_string(player:get_player_name())
|
local skin = storage:get_string(player:get_player_name())
|
||||||
|
Loading…
Reference in New Issue
Block a user