1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Drop some unneeded MOD_REASONs

This commit is contained in:
sfan5 2024-01-19 16:05:59 +01:00
parent be7844192b
commit 6aa4f14a28
2 changed files with 26 additions and 27 deletions

View file

@ -40,13 +40,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "util/basic_macros.h"
static const char *modified_reason_strings[] = {
"initial",
"reallocate",
"reallocate or initial",
"setIsUnderground",
"setLightingExpired",
"setGenerated",
"setNode",
"setNodeNoCheck",
"setTimestamp",
"NodeMetaRef::reportMetadataChange",
"clearAllObjects",
@ -73,6 +71,7 @@ MapBlock::MapBlock(v3s16 pos, IGameDef *gamedef):
m_gamedef(gamedef)
{
reallocate();
assert(m_modified > MOD_STATE_CLEAN);
}
MapBlock::~MapBlock()