mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-18 06:19:34 +01:00
Allow stacks >= 1 being equippable as armor
This commit is contained in:
parent
175890fb15
commit
95ae6c7bbb
1 changed files with 2 additions and 2 deletions
|
@ -337,8 +337,8 @@ minetest.register_on_joinplayer(function(player)
|
||||||
elseif index == 5 then
|
elseif index == 5 then
|
||||||
g = minetest.get_item_group(iname, "armor_feet")
|
g = minetest.get_item_group(iname, "armor_feet")
|
||||||
end
|
end
|
||||||
if g ~= 0 and g ~= nil then
|
if g ~= 0 and g ~= nil and inv:get_stack(listname, index):is_empty() then
|
||||||
return stack:get_count()
|
return 1
|
||||||
else
|
else
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue