1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

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

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