minetest-mods / xdecor

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

Tools are repaired when enchanted #8

Closed wischi-chr closed 9 years ago

wischi-chr commented 9 years ago

is this intentional or a bug?

kilbith commented 9 years ago

You mean when the enchanted tools are put into the Work Table for getting repaired ?

wischi-chr commented 9 years ago

No. Put a (vanilla) worn tool into the enchanting table and enchant it. This also repairs the item.

kilbith commented 9 years ago

Yes indeed, this isn't intentional...

wischi-chr commented 9 years ago

sorry misread "isn't" :smile: should I fix it or are you already working on it?

kilbith commented 9 years ago

I'm looking into the API to get the current wear of the tool in the inputstack, and set the same wear for the enchanted one that replaces it.

kilbith commented 9 years ago

OK fixed with https://github.com/kilbith/xdecor/commit/c4d16ad2dfb6348d7758499b51ee4fc0a9a4f9ad

Thanks for the report.