Modified Boots for 3D_armor update compatibility

This commit is contained in:
Peppy 2018-03-16 23:10:53 +00:00
parent f0173d8da8
commit 4e1f9f243a

View File

@ -3,7 +3,8 @@ local S = axinitium.intllib
local timer = 0
local function add_priv_wear(player)
local inv = player:get_inventory()
local invname = player:get_player_name()
local inv = minetest.get_inventory({type="detached", name=invname.."_armor"})
if inv then
local list = inv:get_list("armor")
for index, stack in pairs(list) do