aboutsummaryrefslogtreecommitdiff
path: root/src/network/CMakeLists.txt
diff options
context:
space:
mode:
authorJozef Behran <jozuejozef@gmail.com>2019-08-07 12:06:45 +0200
committersfan5 <sfan5@live.de>2019-08-13 19:40:59 +0200
commite9ceead81dd989936e2de3ff7cd7496aecd09d39 (patch)
tree51c94e2faf111ed63e40e5bc44d8ea5ea614b6c6 /src/network/CMakeLists.txt
parent833e60d8d229a082e9841dc89494e6bda9cd5020 (diff)
downloadminetest-e9ceead81dd989936e2de3ff7cd7496aecd09d39.tar.gz
minetest-e9ceead81dd989936e2de3ff7cd7496aecd09d39.tar.bz2
minetest-e9ceead81dd989936e2de3ff7cd7496aecd09d39.zip
Fix unnecessary exception use in Map::isNodeUnderground
The isNodeUnderground calls getBlockNoCreate which calls getBlockNoCreateNoEx and throws InvalidPositionException if the returned value is nullptr, which isNodeUnderground then catches to return "false". Remove the try..catch in isNodeUnderground by calling getBlockNoCreateNoEx instead of getBlockNoCreate and checking the returned value for nullptr.
Diffstat (limited to 'src/network/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions