[bug] after_place_node is not caled...

User avatar
addi
Member
 
Posts: 605
Joined: Thu Sep 20, 2012 03:16

[bug] after_place_node is not caled...

by addi » Sun Jul 06, 2014 16:16

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
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

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

by webdesigner97 » Sun Jul 06, 2014 20:20

I also experienced this, but it's not bug. I think there'a git conversation somewhere... Let me find it...

Edit: Here it is
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 6 guests