mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Safely handle block deletion (#13315)
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
This commit is contained in:
parent
f3b198e490
commit
ed632f3854
7 changed files with 74 additions and 5 deletions
|
@ -58,6 +58,9 @@ public:
|
|||
|
||||
void deleteBlock(MapBlock *block);
|
||||
|
||||
// Remove a block from the map and the sector without deleting it
|
||||
void detachBlock(MapBlock *block);
|
||||
|
||||
void getBlocks(MapBlockVect &dest);
|
||||
|
||||
bool empty() const { return m_blocks.empty(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue