Player_skins: Update formspec after skin change
This commit is contained in:
parent
9be74dcb2b
commit
499f3bd7aa
@ -194,8 +194,9 @@ minetest.register_on_player_receive_fields(
|
||||
if skinname ~= nil then
|
||||
player_skins.set_skin(name, skinname)
|
||||
|
||||
minetest.show_formspec(name, "player_skins:player_skins",
|
||||
player_skins.get_formspec(name))
|
||||
local form = player_skins.get_formspec(name)
|
||||
player:set_inventory_formspec(form)
|
||||
minetest.show_formspec(name, "player_skins:player_skins", form)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user