TU19: merge Minecraft.World/Level

This commit is contained in:
Tropical
2026-03-21 17:07:51 -05:00
parent 29522d1ac9
commit 86e08af338
73 changed files with 3013 additions and 1259 deletions

View File

@@ -45,7 +45,7 @@ McRegionChunkStorage::McRegionChunkStorage(ConsoleSaveFile* saveFile,
int count = dis.readInt();
for (int i = 0; i < count; ++i) {
__int64 index = dis.readLong();
int64_t index = dis.readLong();
CompoundTag* tag = NbtIo::read(&dis);
ByteArrayOutputStream bos;
@@ -160,6 +160,14 @@ LevelChunk* McRegionChunkStorage::load(Level* level, int x, int z) {
#endif
delete chunkData;
}
#ifndef _CONTENT_PACKAGE
if (levelChunk && app.DebugSettingsOn() &&
app.GetGameSettingsDebugMask(ProfileManager.GetPrimaryPad()) &
(1L << eDebugSetting_EnableBiomeOverride)) {
// 4J Stu - This will force an update of the chunk's biome array
levelChunk->reloadBiomes();
}
#endif
return levelChunk;
}