mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Add minetest.swap_node
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user