1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00

Improve edge case handling in LBMManager

This commit is contained in:
sfan5 2025-03-18 20:57:19 +01:00
parent 3dca2cd26a
commit ed40ea010b
2 changed files with 32 additions and 26 deletions

View file

@ -103,6 +103,7 @@ public:
void addLBM(LoadingBlockModifierDef *lbm_def, IGameDef *gamedef);
const lbm_map::mapped_type *lookup(content_t c) const;
const lbm_vector &getList() const { return lbm_list; }
bool empty() const { return lbm_list.empty(); }
// This struct owns the LBM pointers.
~LBMContentMapping();