mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
Fix crash and trim trailing
This commit is contained in:
parent
b47fae0ed4
commit
d3881fc1d1
@ -137,7 +137,7 @@ function mcl_skins.compile_skin(skin)
|
|||||||
if #output > 0 then output = output .. "^" end
|
if #output > 0 then output = output .. "^" end
|
||||||
output = output .. layers[rank]
|
output = output .. layers[rank]
|
||||||
end
|
end
|
||||||
if skin.cape ~= "nocape" then
|
if skin.cape and skin.cape ~= "nocape" then
|
||||||
output = output .. "^(" .. skin.cape .. "_body.png)"
|
output = output .. "^(" .. skin.cape .. "_body.png)"
|
||||||
end
|
end
|
||||||
return output
|
return output
|
||||||
|
Loading…
Reference in New Issue
Block a user