minetest-mods / xdecor

A decoration mod for Minetest meant to be light, simple and well-featured
Other
29 stars 45 forks source link

fixed: create unknown items with enchanting table #5

Closed wischi-chr closed 9 years ago

wischi-chr commented 9 years ago

check if tool slot is "enchantable" before enchanting. Without this check it is possible to create "unknown items" (for example by enchanting a tool two times, or by swapping an non-enchantable item into the enchanting table)

kilbith commented 9 years ago

That doesn't happened before. It's a regression caused by https://github.com/kilbith/xdecor/commit/00fd907ecb41873d7179f86c18a1a8e91c1a0b66

Now fixed by https://github.com/kilbith/xdecor/commit/e532d31db38f5cbb24a4b31e2b979519285437b1

Thanks for the help anyhow.