Map::isValidPosition: Return false instead of throwing exception

master
MillersMan 2016-11-27 21:34:16 +01:00 committed by paramat
parent 8a7dc838a8
commit 2829742ae8
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}