forked from Mirrorlandia_minetest/minetest
Map::isValidPosition: Return false instead of throwing exception
This commit is contained in:
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
Block a user