diff options
author | MillersMan <millersman@users.noreply.github.com> | 2016-11-27 21:34:16 +0100 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-12-07 03:51:44 +0000 |
commit | 2829742ae8869276f000bdb64a9f14977e70038b (patch) | |
tree | 8def106c83258d9f7a6e36af31c84f9acdeb70aa /src | |
parent | 8a7dc838a8c1f8f2a5e9b710a8ee27d4d00715f9 (diff) | |
download | minetest-2829742ae8869276f000bdb64a9f14977e70038b.tar.gz minetest-2829742ae8869276f000bdb64a9f14977e70038b.tar.bz2 minetest-2829742ae8869276f000bdb64a9f14977e70038b.zip |
Map::isValidPosition: Return false instead of throwing exception
Diffstat (limited to 'src')
-rw-r--r-- | src/map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index d03943a16..3c135cd48 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -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); } |