Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Fix formspec enchants not triggering when placing 3d_armor elements
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbith committed Jan 22, 2016
1 parent 9dfbe6e commit 9bd73ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enchanting.lua
Expand Up @@ -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
Expand Down

0 comments on commit 9bd73ba

Please sign in to comment.