1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-29 07:50:35 +02:00

fixed missing inventory name

This commit is contained in:
crabman77 2015-07-27 03:40:36 +02:00
parent ffd9631526
commit 0abe0a857f

View File

@ -139,7 +139,7 @@ end
pclasses.api.util.does_wear_full_armor = function(pname, material, noshield)
local inv = minetest.get_inventory({type = "detached", name = pname .. "_armor"})
if not inv or inv:is_empty() then
if not inv or inv:is_empty("armor") then
return false
end
local full_armor = true