diff options
author | Novatux <nathanael.courant@laposte.net> | 2013-11-23 15:35:49 +0100 |
---|---|---|
committer | Novatux <nathanael.courant@laposte.net> | 2013-11-30 18:37:56 +0100 |
commit | d879a539cd19ddd1ee34afec2512fb2238de2822 (patch) | |
tree | 68105678426cb1a498bfe3ba4354506a9a560409 /src/environment.cpp | |
parent | 752e11e11411d72868a406d35538adc5d1126655 (diff) | |
download | minetest-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.cpp | 5 |
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; |