aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_env.h
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-11-23 15:35:49 +0100
committerNovatux <nathanael.courant@laposte.net>2013-11-30 18:37:56 +0100
commitd879a539cd19ddd1ee34afec2512fb2238de2822 (patch)
tree68105678426cb1a498bfe3ba4354506a9a560409 /src/script/lua_api/l_env.h
parent752e11e11411d72868a406d35538adc5d1126655 (diff)
downloadminetest-d879a539cd19ddd1ee34afec2512fb2238de2822.tar.gz
minetest-d879a539cd19ddd1ee34afec2512fb2238de2822.tar.bz2
minetest-d879a539cd19ddd1ee34afec2512fb2238de2822.zip
Add minetest.swap_node
Diffstat (limited to 'src/script/lua_api/l_env.h')
-rw-r--r--src/script/lua_api/l_env.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/lua_api/l_env.h b/src/script/lua_api/l_env.h
index 814d12165..126349c6e 100644
--- a/src/script/lua_api/l_env.h
+++ b/src/script/lua_api/l_env.h
@@ -34,6 +34,10 @@ private:
// minetest.remove_node(pos)
// pos = {x=num, y=num, z=num}
static int l_remove_node(lua_State *L);
+
+ // minetest.swap_node(pos, node)
+ // pos = {x=num, y=num, z=num}
+ static int l_swap_node(lua_State *L);
// minetest.get_node(pos)
// pos = {x=num, y=num, z=num}