minetest-mods / mesecons

Mod for Minetest that adds digital circuitry [=Minecraft redstone]
https://mesecons.net
Other
211 stars 121 forks source link

Support doors and trapdoors from mods #683

Closed mruncreative closed 1 month ago

mruncreative commented 1 month ago

Removed hardcoded door names and instead now use the API of the door mod to meseconify all doors and trapdoors that have been registered after the mods are finished loading.

mruncreative commented 1 month ago

I tested it with the sakura door from ethereal ng. At first I was angry that ethereal ng door didn't work with mesecons and thought they were lazy goodfornothings but then I looked at the code and it uses the door mod and mesecon patches those doors, so it should work, but only for hardcoded values rather than using the api. So I made this fix to automatically support all doors ever made and going to be made.

Niklp09 commented 1 month ago

Thanks for adding this here!

This makes mesecons integration in some mods obsolete, notably