mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix unnecessary exception use in Map::getSectorXXX (#8792)
The Map::getSectorNoGenerate throws an exception but no other code is really dependent on that. Fix the odd instance of misuse in ClientMap::emergeSector and remove the exception throwing version of the method along with the "NoEx" suffixes in the names of these methods.
This commit is contained in:
parent
539f016c1b
commit
72b7a957af
3 changed files with 13 additions and 25 deletions
|
@ -155,10 +155,8 @@ public:
|
|||
void dispatchEvent(MapEditEvent *event);
|
||||
|
||||
// On failure returns NULL
|
||||
MapSector * getSectorNoGenerateNoExNoLock(v2s16 p2d);
|
||||
MapSector * getSectorNoGenerateNoLock(v2s16 p2d);
|
||||
// Same as the above (there exists no lock anymore)
|
||||
MapSector * getSectorNoGenerateNoEx(v2s16 p2d);
|
||||
// On failure throws InvalidPositionException
|
||||
MapSector * getSectorNoGenerate(v2s16 p2d);
|
||||
// Gets an existing sector or creates an empty one
|
||||
//MapSector * getSectorCreate(v2s16 p2d);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue