* SavingWorldScreen: Only save what's necessary

This commit is contained in:
iProgramInCpp
2023-08-02 21:55:46 +03:00
parent a2df1b3095
commit e5f942c194
7 changed files with 49 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ void SavingWorldScreen::render(int mouseX, int mouseY, float f)
int yPos = x_height / 2;
int width = m_pFont->width("Saving chunks");
m_pFont->drawShadow("Saving chunks", (x_width - width) / 2, yPos + 4, 0xFFFFFF);
m_pFont->drawShadow("Saving chunks", (x_width - width) / 2, yPos, 0xFFFFFF);
}
void SavingWorldScreen::tick()
@@ -36,7 +36,7 @@ void SavingWorldScreen::tick()
Level* pLevel = m_pMinecraft->m_pLevel;
if (pLevel)
{
pLevel->saveAllChunks();
pLevel->saveUnsavedChunks();
pLevel->saveLevelData();
pLevel->savePlayerData();