mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 12:01:06 +01:00
Fix crash and trim trailing
This commit is contained in:
parent
b47fae0ed4
commit
d3881fc1d1
1 changed files with 49 additions and 49 deletions
|
@ -137,7 +137,7 @@ function mcl_skins.compile_skin(skin)
|
|||
if #output > 0 then output = output .. "^" end
|
||||
output = output .. layers[rank]
|
||||
end
|
||||
if skin.cape ~= "nocape" then
|
||||
if skin.cape and skin.cape ~= "nocape" then
|
||||
output = output .. "^(" .. skin.cape .. "_body.png)"
|
||||
end
|
||||
return output
|
||||
|
|
Loading…
Reference in a new issue