From 499f3bd7aaa6967a427eac1d8845eb8f622fcdf7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 4 Sep 2019 00:36:41 +0200 Subject: [PATCH] Player_skins: Update formspec after skin change --- mods/player_skins/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mods/player_skins/init.lua b/mods/player_skins/init.lua index 757fa84..66d23d0 100644 --- a/mods/player_skins/init.lua +++ b/mods/player_skins/init.lua @@ -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)