forked from your-land-mirror/yl_speak_up
fixed bug if no textures are defined
This commit is contained in:
parent
52e04dff2f
commit
1b9df50376
@ -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 = ""
|
||||
|
Loading…
Reference in New Issue
Block a user