Map::isValidPosition: Return false instead of throwing exception
parent
8a7dc838a8
commit
2829742ae8
|
@ -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…
Reference in New Issue