From: MillersMan Date: Sun, 27 Nov 2016 20:34:16 +0000 (+0100) Subject: Map::isValidPosition: Return false instead of throwing exception X-Git-Tag: 0.4.15~88 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2829742ae8869276f000bdb64a9f14977e70038b;p=oweals%2Fminetest.git Map::isValidPosition: Return false instead of throwing exception --- 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); }