forked from your-land-mirror/yl_speak_up
allow to unset cape
This commit is contained in:
parent
62d267cfe7
commit
c513e0b8e4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user