Page 1 of 1

[bug] after_place_node is not caled...

PostPosted: Sun Jul 06, 2014 16:16
by addi
in nodedefinition after_place_node = myfunction is not caled if there on_place = minetest.rotate_node

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

Re: [bug] after_place_node is not caled...

PostPosted: Sun Jul 06, 2014 20:20
by webdesigner97
I also experienced this, but it's not bug. I think there'a git conversation somewhere... Let me find it...

Edit: Here it is