[bug] after_place_node is not caled...
in nodedefinition after_place_node = myfunction is not caled if there on_place = minetest.rotate_node
example:
than the node is rotatet correctly, but myfunction does not get executed
example:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
function myfunction(pos, placer, itemstack, pointed_thing)
print("blah placed at ".. minetest.pos_to_string(pos));
local meta = minetest.get_meta(pos);
--setup the owner and other meta information
[...]
end
minetest.register_node("blah:blah",{
[...]
paramtype2 = "facedir",
on_place = minetest.rotate_node, --used to rotate the node
after_place_node =myfunction --used to set metadata
});
than the node is rotatet correctly, but myfunction does not get executed