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:
parent
073f5cf03d
commit
37df9cb7d7
6 changed files with 67 additions and 2 deletions
|
@ -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()");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue