From e6516d298284b6a64af2bce7c6df5be2ba4eb964 Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Sun, 13 May 2018 00:37:19 +0200 Subject: Visual update fixes if skin change externally (with and without 3d armor) API updated also --- skin_meta_api.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'skin_meta_api.lua') diff --git a/skin_meta_api.lua b/skin_meta_api.lua index f8a92e2..c08573f 100644 --- a/skin_meta_api.lua +++ b/skin_meta_api.lua @@ -59,8 +59,6 @@ function skin_class:get_preview() return self._preview or "player.png" end -local armor_loaded = minetest.global_exists("armor") - function skin_class:apply_skin_to_player(player) local ver = self:get_meta("format") or "1.0" default.player_set_model(player, "skinsdb_3d_armor_character.b3d") @@ -76,7 +74,7 @@ function skin_class:apply_skin_to_player(player) v10_texture = self:get_texture() end - if armor_loaded then + if skins.armor_loaded then local armor_textures = armor.textures[player:get_player_name()] if armor_textures then armor_texture = armor_textures.armor @@ -103,7 +101,6 @@ function skin_class:set_skin(player) -- The set_skin is used on skins selection -- This means the method could be redefined to start an furmslec -- See character_creator for example - self:apply_skin_to_player(player) end function skin_class:is_applicable_for_player(playername) -- cgit v1.2.3