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

alignment

This commit is contained in:
Lars 2025-06-17 20:51:31 -07:00
parent a74823f4ad
commit 9ef06f7d47
2 changed files with 3 additions and 3 deletions

View file

@ -101,10 +101,10 @@ static const char *modified_reason_strings[] = {
*/ */
MapBlock::MapBlock(v3s16 pos, IGameDef *gamedef): MapBlock::MapBlock(v3s16 pos, IGameDef *gamedef):
m_is_mono_block(true),
m_pos(pos), m_pos(pos),
m_pos_relative(pos * MAP_BLOCKSIZE), m_pos_relative(pos * MAP_BLOCKSIZE),
m_gamedef(gamedef) m_gamedef(gamedef),
m_is_mono_block(true)
{ {
reallocate(1, MapNode(CONTENT_IGNORE)); reallocate(1, MapNode(CONTENT_IGNORE));
} }

View file

@ -464,7 +464,6 @@ public:
private: private:
// see isOrphan() // see isOrphan()
bool m_orphan = false; bool m_orphan = false;
bool m_is_mono_block;
// Position in blocks on parent // Position in blocks on parent
v3s16 m_pos; v3s16 m_pos;
@ -499,6 +498,7 @@ private:
*/ */
float m_usage_timer = 0; float m_usage_timer = 0;
bool m_is_mono_block;
public: public:
//// ABM optimizations //// //// ABM optimizations ////
// True if we never want to cache content types for this block // True if we never want to cache content types for this block