Skip to content

Commit

Permalink
World updater. Disable world backup. Increase progress reporting rate
Browse files Browse the repository at this point in the history
  • Loading branch information
lab3 committed Oct 1, 2023
1 parent cd1e5b1 commit fb3c154
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mapping_version=2022.11.27-1.19.2

# Irons Mod
mod_id=irons_spellbooks
mod_version=1.19.2-2.0.0
mod_version=1.19.2-2.0-SNAPSHOT
mod_group_id=io.redspace.ironsspellbooks

# Irons mods.toml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

public class IronsWorldUpgrader {
public static int IRONS_WORLD_DATA_VERSION = 1;
final int REPORT_PROGRESS_MS = 20000;
final int REPORT_PROGRESS_MS = 5000;
final byte[] INHABITED_TIME_MARKER = new byte[]{0x49, 0x6E, 0x68, 0x61, 0x62, 0x69, 0x74, 0x65, 0x64, 0x54, 0x69, 0x6D, 0x65};
public static final String REGION_FOLDER = "region";
public static final String ENTITY_FOLDER = "entities";
Expand Down Expand Up @@ -82,13 +82,13 @@ public void runUpgrade() {
if (worldNeedsUpgrading()) {
IronsSpellbooks.LOGGER.info("IronsWorldUpgrader starting upgrade");

try {
IronsSpellbooks.LOGGER.info("IronsWorldUpgrader Attempting minecraft world backup (this can take long on large worlds)");
levelStorage.makeWorldBackup();
IronsSpellbooks.LOGGER.info("IronsWorldUpgrader Minecraft world backup complete.");
} catch (Exception exception) {
IronsSpellbooks.LOGGER.error("IronsWorldUpgrader Level Backup failed: {}", exception.getMessage());
}
// try {
// IronsSpellbooks.LOGGER.info("IronsWorldUpgrader Attempting minecraft world backup (this can take long on large worlds)");
// levelStorage.makeWorldBackup();
// IronsSpellbooks.LOGGER.info("IronsWorldUpgrader Minecraft world backup complete.");
// } catch (Exception exception) {
// IronsSpellbooks.LOGGER.error("IronsWorldUpgrader Level Backup failed: {}", exception.getMessage());
// }

IronsSpellbooks.LOGGER.info("IronsWorldUpgrader starting REGION_FOLDER");
long millis = Util.getMillis();
Expand Down

0 comments on commit fb3c154

Please sign in to comment.