mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-23 16:30:19 +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)
|
pclasses.api.util.does_wear_full_armor = function(pname, material, noshield)
|
||||||
local inv = minetest.get_inventory({type = "detached", name = pname .. "_armor"})
|
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
|
return false
|
||||||
end
|
end
|
||||||
local full_armor = true
|
local full_armor = true
|
||||||
|
Loading…
Reference in New Issue
Block a user