Skip to content

Commit

Permalink
Map::isValidPosition: Return false instead of throwing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
MillersMan authored and paramat committed Dec 7, 2016
1 parent 8a7dc83 commit 2829742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map.cpp
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2829742

Please sign in to comment.