reimplement aether stuff from personal repo

This commit is contained in:
Bonnie
2026-03-03 11:12:53 -06:00
parent 4d04f408d7
commit afb8090812
129 changed files with 4352 additions and 591 deletions

View File

@@ -151,19 +151,19 @@ public:
// 4J added
static const int MAX_UPDATES = 256;
// Each of these need to be duplicated for each level in the current game. As we currently only have 2 (over/nether), making this constant
static Level *m_level[3];
static int m_updateChunkX[3][LEVEL_CHUNKS_TO_UPDATE_MAX];
static int m_updateChunkZ[3][LEVEL_CHUNKS_TO_UPDATE_MAX];
static int m_updateChunkCount[3];
static int m_updateTileX[3][MAX_UPDATES];
static int m_updateTileY[3][MAX_UPDATES];
static int m_updateTileZ[3][MAX_UPDATES];
static int m_updateTileCount[3];
static int m_randValue[3];
// Each of these need to be duplicated for each level in the current game (over/nether/end/aether)
static Level *m_level[4];
static int m_updateChunkX[4][LEVEL_CHUNKS_TO_UPDATE_MAX];
static int m_updateChunkZ[4][LEVEL_CHUNKS_TO_UPDATE_MAX];
static int m_updateChunkCount[4];
static int m_updateTileX[4][MAX_UPDATES];
static int m_updateTileY[4][MAX_UPDATES];
static int m_updateTileZ[4][MAX_UPDATES];
static int m_updateTileCount[4];
static int m_randValue[4];
static C4JThread::EventArray* m_updateTrigger;
static CRITICAL_SECTION m_updateCS[3];
static CRITICAL_SECTION m_updateCS[4];
static C4JThread* m_updateThread;
static int runUpdate(void* lpParam);