1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

[CSM] Add get_node and get_node_or_nil

This commit is contained in:
red-001 2017-01-30 19:10:37 +00:00 committed by Loïc Blot
parent 073f5cf03d
commit 37df9cb7d7
6 changed files with 67 additions and 2 deletions

View file

@ -1447,6 +1447,11 @@ void Client::removeNode(v3s16 p)
}
}
MapNode Client::getNode(v3s16 p, bool *is_valid_position)
{
return m_env.getMap().getNodeNoEx(p, is_valid_position);
}
void Client::addNode(v3s16 p, MapNode n, bool remove_metadata)
{
//TimeTaker timer1("Client::addNode()");