Map::isValidPosition: Return false instead of throwing exception

This commit is contained in:
MillersMan 2016-11-27 21:34:16 +01:00 committed by paramat
parent 8a7dc838a8
commit 2829742ae8

@ -174,7 +174,7 @@ bool Map::isNodeUnderground(v3s16 p)
bool Map::isValidPosition(v3s16 p) bool Map::isValidPosition(v3s16 p)
{ {
v3s16 blockpos = getNodeBlockPos(p); v3s16 blockpos = getNodeBlockPos(p);
MapBlock *block = getBlockNoCreate(blockpos); MapBlock *block = getBlockNoCreateNoEx(blockpos);
return (block != NULL); return (block != NULL);
} }