minetest-mods / areas

A rewrite of the node_ownership Minetest mod with many new features.
GNU Lesser General Public License v2.1
51 stars 52 forks source link

/area_pos set does not work on some nodes #41

Open SwissalpS opened 4 years ago

SwissalpS commented 4 years ago

I was protecting an area with pipeworks:deployers in the corners. It would not work until I replaced the deployers with some standard node and put them back after protecting area.

SmallJoker commented 4 years ago

Areas depends on the register_on_punchnode callback, which is not run by pipeworks' on_punch callback. https://github.com/minetest/minetest/blob/6dcc9e63318f815a3de8c9db2ee7b845066e0135/doc/lua_api.txt#L7449-L7452

If this is an issue, please blame mods that do not run this callback - though I wonder why it's not done automatically by the engine...