mirror of
https://github.com/minetest/minetest.git
synced 2025-03-20 01:02:33 +01:00
Map::isValidPosition: Return false instead of throwing exception
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user