diff --git a/api/api_fashion.lua b/api/api_fashion.lua index 299410d..6aca661 100644 --- a/api/api_fashion.lua +++ b/api/api_fashion.lua @@ -49,7 +49,7 @@ end -- this makes use of the "model" option of formspecs yl_speak_up.skin_preview_3d = function(mesh, textures, where_front, where_back) local tstr = "" - for i, t in ipairs(textures) do + for i, t in ipairs(textures or {}) do tstr = tstr..minetest.formspec_escape(t).."," end local backside = ""