From bfe1c2d0ad899cd0fd40a7d65eb3ff959fc51875 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Tue, 22 Nov 2016 19:37:06 +0100 Subject: [PATCH] fix Only one enchanted piece of armor is allowed to be placed in the armor slots at one time. --- mods/3d_armor/3d_armor/armor.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/3d_armor/3d_armor/armor.lua b/mods/3d_armor/3d_armor/armor.lua index 44bcf4e9..e95a8ed9 100755 --- a/mods/3d_armor/3d_armor/armor.lua +++ b/mods/3d_armor/3d_armor/armor.lua @@ -437,6 +437,9 @@ minetest.register_on_joinplayer(function(player) --MFF (crabman/27/11/2015) no same item type. *helmet* local ptype = name:split(":")[2]:split("_")[1] + if ptype == "enchanted" then + ptype = name:split(":")[2]:split("_")[2] + end for i=1, size do local stack = player_inv:get_stack(listname, i) if stack:get_count() > 0 then