properly store changed shield texture

This commit is contained in:
Sokomine 2022-10-01 06:11:37 +02:00
parent 48202642dd
commit 35761ac779

View File

@ -133,6 +133,10 @@ yl_speak_up.mesh_update_textures = function(pname, textures)
end
obj:set_properties({ textures = textures })
yl_speak_up.speak_to[pname].skins = textures
local entity = obj:get_luaentity()
if(entity) then
entity.yl_speak_up.skin = textures
end
-- scrolling through the diffrent skins updates the skin; avoid spam in the log
-- yl_speak_up.log_change(pname, n_id,
-- "(fashion) skin changed to "..tostring(new_skin)..".")