SwissalpS / replacer

tool that replaces nodes by clicking on them and another that inspects nodes and entities (Mod for Luanti/Minetest)
GNU Lesser General Public License v3.0
4 stars 3 forks source link

Reduce Technic registration warnings #43

Closed S-S-X closed 2 years ago

S-S-X commented 2 years ago

This just reduces registration warnings by not running through compatibility extensions.

2022-06-32 14:22:10: WARNING[Main]: Deprecated technic.register_power_tool use. Setting max_charge for replacer:replacer_technic
[replacer] loaded

.... other stuff removed ....

2022-06-32 14:22:12: WARNING[Main]: Deprecated technic.register_power_tool use. Ensuring fields for replacer:replacer_technic
2022-06-32 14:22:12: WARNING[Main]: Mod replacer seems to be aware of technic.plus but replacer:replacer_technic is still using deprecated registration, skipping charge compatibility.
2022-06-32 14:22:12: WARNING[Main]: Updated on_refill and max_charge for replacer:replacer_technic

I would also recommend moving to new itemdef.technic_get_charge / itemdef.technic_set_charge described here https://github.com/minetest-mods/technic/pull/600

S-S-X commented 2 years ago

Also fixes charging crash with latest mt-mods technic, crash however will also be fixed by https://github.com/mt-mods/technic/pull/276 so this is not mandatory (feature and compatibility were different PRs and feature is merged but compatibility not yet).

SwissalpS commented 2 years ago

Thanks :)