mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
Use modname to allow entering armor's inventory
This commit is contained in:
parent
6acb558893
commit
12a4679290
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user