diff options
| author | Marvelco <helito941@gmail.com> | 2026-03-11 05:04:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-10 22:04:19 -0500 |
| commit | 1036b7368e5625d34666beb24163756c1da6b227 (patch) | |
| tree | 2b85f80a6b6cfcb343a1981ad5d4d83b71145bf3 /Minecraft.Client/Common/Network | |
| parent | a195ac7172642196a244260291f966ed7cea1edc (diff) | |
Fixed DLC map loading / saving, missing chunks (#1114)
* fixed all DLC maps
* fixed old saves have overlapping chunks with the new system
Diffstat (limited to 'Minecraft.Client/Common/Network')
| -rw-r--r-- | Minecraft.Client/Common/Network/GameNetworkManager.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Minecraft.Client/Common/Network/GameNetworkManager.cpp b/Minecraft.Client/Common/Network/GameNetworkManager.cpp index 3c032bf9..a502dbfb 100644 --- a/Minecraft.Client/Common/Network/GameNetworkManager.cpp +++ b/Minecraft.Client/Common/Network/GameNetworkManager.cpp @@ -942,13 +942,18 @@ int CGameNetworkManager::ServerThreadProc( void* lpParameter ) app.SetGameHostOption(eGameHostOption_All,param->settings); // 4J Stu - If we are loading a DLC save that's separate from the texture pack, load - if( param->levelGen != nullptr && (param->texturePackId == 0 || param->levelGen->getRequiredTexturePackId() != param->texturePackId) ) + if (param != nullptr && param->levelGen != nullptr && param->levelGen->isFromDLC()) { while((Minecraft::GetInstance()->skins->needsUIUpdate() || ui.IsReloadingSkin())) { Sleep(1); } param->levelGen->loadBaseSaveData(); + + while (!param->levelGen->hasLoadedData()) + { + Sleep(1); + } } } |
