mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Map::isValidPosition: Return false instead of throwing exception
This commit is contained in:
parent
8a7dc838a8
commit
2829742ae8
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ bool Map::isNodeUnderground(v3s16 p)
|
|||
bool Map::isValidPosition(v3s16 p)
|
||||
{
|
||||
v3s16 blockpos = getNodeBlockPos(p);
|
||||
MapBlock *block = getBlockNoCreate(blockpos);
|
||||
MapBlock *block = getBlockNoCreateNoEx(blockpos);
|
||||
return (block != NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue