diff options
author | Jozef Behran <jozuejozef@gmail.com> | 2019-08-07 12:06:45 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-08-13 19:40:59 +0200 |
commit | e9ceead81dd989936e2de3ff7cd7496aecd09d39 (patch) | |
tree | 51c94e2faf111ed63e40e5bc44d8ea5ea614b6c6 /.github | |
parent | 833e60d8d229a082e9841dc89494e6bda9cd5020 (diff) | |
download | minetest-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 '.github')
0 files changed, 0 insertions, 0 deletions