fixed bug if no textures are defined

This commit is contained in:
Sokomine 2025-03-22 23:25:17 +01:00
parent 52e04dff2f
commit 1b9df50376

View File

@ -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 = ""