From 06baf05c641355ead97e9428c4455af9e8b11cef Mon Sep 17 00:00:00 2001 From: Novatux Date: Sat, 30 Nov 2013 18:57:56 +0100 Subject: [PATCH] Add documentation for minetest.swap_node --- doc/lua_api.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 7fa8870aa..6c06d558f 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1254,6 +1254,8 @@ Environment access: minetest.set_node(pos, node) minetest.add_node(pos, node): alias set_node(pos, node) ^ Set node at position (node = {name="foo", param1=0, param2=0}) +minetest.swap_node(pos, node) +^ Set node at position, but don't remove metadata minetest.remove_node(pos) ^ Equivalent to set_node(pos, "air") minetest.get_node(pos)