mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-17 07:50:29 +01:00
fixed missing inventory name
This commit is contained in:
parent
ffd9631526
commit
0abe0a857f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user