mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
* SavingWorldScreen: Only save what's necessary
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user