aboutsummaryrefslogtreecommitdiff
path: root/src/environment.cpp
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/environment.cpp
parent752e11e11411d72868a406d35538adc5d1126655 (diff)
downloadminetest-d879a539cd19ddd1ee34afec2512fb2238de2822.tar.gz
minetest-d879a539cd19ddd1ee34afec2512fb2238de2822.tar.bz2
minetest-d879a539cd19ddd1ee34afec2512fb2238de2822.zip
Add minetest.swap_node
Diffstat (limited to 'src/environment.cpp')
-rw-r--r--src/environment.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/environment.cpp b/src/environment.cpp
index f019591df..e4567a78e 100644
--- a/src/environment.cpp
+++ b/src/environment.cpp
@@ -874,6 +874,11 @@ bool ServerEnvironment::removeNode(v3s16 p)
return true;
}
+bool ServerEnvironment::swapNode(v3s16 p, const MapNode &n)
+{
+ return m_map->addNodeWithEvent(p, n, false);
+}
+
std::set<u16> ServerEnvironment::getObjectsInsideRadius(v3f pos, float radius)
{
std::set<u16> objects;