mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-02 07:43:48 +01:00
Allow stacks >= 1 being equippable as armor
parent
175890fb15
commit
95ae6c7bbb
@ -337,8 +337,8 @@ minetest.register_on_joinplayer(function(player)
|
||||
elseif index == 5 then
|
||||
g = minetest.get_item_group(iname, "armor_feet")
|
||||
end
|
||||
if g ~= 0 and g ~= nil then
|
||||
return stack:get_count()
|
||||
if g ~= 0 and g ~= nil and inv:get_stack(listname, index):is_empty() then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user