Use modname to allow entering armor's inventory

This commit is contained in:
LeMagnesium 2015-08-30 18:45:52 +02:00
parent 6acb558893
commit 12a4679290
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ minetest.register_on_joinplayer(function(player)
local name = stack:get_name()
local player_inv = player:get_inventory()
local size = player_inv:get_size(listname)
if minetest.get_item_group(name, "armor_use") == 0 then
if not (name:split(":")[1] == "3d_armor" or name:split(":")[1] == "shields") then
return 0
end
if name:find("shield") then