Fix migration chat message not appearing

This commit is contained in:
James Seibel
2024-04-13 17:30:39 -05:00
parent 352a59838d
commit 6e0071a046
2 changed files with 3 additions and 3 deletions
@@ -488,11 +488,11 @@ public class ClientApi
// data migration
if (this.showMigrationMessageNextFrame
&& this.migrationMessageShown
&& !this.migrationMessageShown
&& Config.Client.Advanced.LodBuilding.showMigrationChatWarning.get())
{
this.showMigrationMessageNextFrame = false;
this.migrationMessageShown = false;
this.migrationMessageShown = true;
MC.sendChatMessage("Old Distant Horizons data is being migrated.");
MC.sendChatMessage("During migration LODs may load slowly and DH world gen is disabled.");
@@ -427,7 +427,7 @@ public class FullDataSourceProviderV2
catch (Exception e)
{
DhSectionPos migrationPos = legacyDataSource.getPos();
LOGGER.error("Unexpected issue migrating data source at pos " + migrationPos + ". Error: " + e.getMessage(), e);
LOGGER.warn("Unexpected issue migrating data source at pos " + migrationPos + ". Error: " + e.getMessage(), e);
this.legacyFileHandler.markMigrationFailed(migrationPos);
}
}