[clothing] update

master
elite 2017-07-30 12:25:35 -04:00
parent 43832e74ab
commit 2a3276ce08
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ minetest.register_on_joinplayer(function(player)
end,
allow_put = function(inv, listname, index, stack, player)
local item = stack:get_name()
if minetest.get_item_group(item, "clothing") > 0 then
if minetest.get_item_group(item, "clothing") > 0 or
minetest.get_item_group(item, "cape") > 0 then
return 1
end
return 0