From 9bd73baba9c4a6cbacb777dd5fd6a49c291f6e09 Mon Sep 17 00:00:00 2001 From: kilbith Date: Fri, 22 Jan 2016 12:06:17 +0100 Subject: [PATCH] Fix formspec enchants not triggering when placing 3d_armor elements --- enchanting.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enchanting.lua b/enchanting.lua index 7c2a3b4..c982cc6 100644 --- a/enchanting.lua +++ b/enchanting.lua @@ -33,7 +33,7 @@ function enchanting.on_put(pos, listname, _, stack) for k, v in pairs({"axe, pick, shovel", "chestplate, leggings, helmet", "sword", "boots"}) do - if v:match(stack:get_name():match("([^:]+)%_")) then + if v:match(stack:get_name():match(":(.-)%_")) then enchanting.formspec(pos, k) end end