diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-01-21 22:05:29 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-01-21 22:06:40 -0500 |
commit | 1b5b6fe6929404ae416ac33c31df7d795d444614 (patch) | |
tree | 5f308b52ccfadaefada887c3f16dfdf7635a2f79 /doc | |
parent | 057858ddda76d1f674667e024f388c56ae2e11a2 (diff) | |
download | minetest-1b5b6fe6929404ae416ac33c31df7d795d444614.tar.gz minetest-1b5b6fe6929404ae416ac33c31df7d795d444614.tar.bz2 minetest-1b5b6fe6929404ae416ac33c31df7d795d444614.zip |
Add pointed_thing to minetest.register_on_placenode
As suggested by qwrwed.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 5552b3a31..4614ca062 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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 |