allow to unset cape

This commit is contained in:
Sokomine 2023-11-05 13:05:42 +01:00
parent 62d267cfe7
commit c513e0b8e4

View File

@ -173,6 +173,10 @@ yl_speak_up.get_fs_fashion_extended = function(pname)
return "label[Error. Not in Edit mode!]"
end
-- make sure the cape can be unset again
if(#capes < 1 or capes[1] ~= "") then
table.insert(capes, 1, "")
end
local cape_list = table.concat(capes, ",")
local cape_index = table.indexof(capes, cape)
if(cape_index == -1) then