mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Add pointed_thing to minetest.register_on_placenode
As suggested by qwrwed.
This commit is contained in:
parent
057858ddda
commit
1b5b6fe692
2 changed files with 14 additions and 3 deletions
|
@ -1202,7 +1202,7 @@ minetest.register_on_shutdown(func())
|
|||
^ WARNING: If the server terminates abnormally (i.e. crashes), the registered
|
||||
callbacks WILL LIKELY NOT BE RUN. Data should be saved at
|
||||
semi-frequent intervals as well as on server shutdown.
|
||||
minetest.register_on_placenode(func(pos, newnode, placer, oldnode, itemstack))
|
||||
minetest.register_on_placenode(func(pos, newnode, placer, oldnode, itemstack, pointed_thing))
|
||||
^ Called when a node has been placed
|
||||
^ If return true no item is taken from itemstack
|
||||
^ Not recommended; use on_construct or after_place_node in node definition
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue