Fix formspec enchants not triggering when placing 3d_armor elements

master
kilbith 2016-01-22 12:06:17 +01:00
parent 9dfbe6e8af
commit 9bd73baba9
1 changed files with 1 additions and 1 deletions

View File

@ -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