Skip to content

Commit

Permalink
Improve Data Fixer Logs and Messages
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Jan 12, 2024
1 parent 48d338f commit 5573761
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/nomiceu/nomilabs/config/LabsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public static class Advanced {
"If this is in a Nomi-CEu environment, make sure it is true, and do not change it, or items/blocks may be lost!",
"[default: false]"})
@Config.LangKey("config.nomilabs.advanced.enable_nomi_ceu_data_fixes")
@Config.RequiresMcRestart
@Config.RequiresWorldRestart
public boolean enableNomiCEuDataFixes = false;

@Config.Comment({"List of Regex Patterns to ignore if they are included in the ITEM missing registry list.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ public static void onWorldLoad(SaveHandler save) {
.append(TextFormatting.RED).append("Launching with the wrong mode ")
.append(TextFormatting.UNDERLINE).append("WILL").append(TextFormatting.RESET).append(TextFormatting.RED)
.append(" void items and/or blocks!\n\n")
.append(TextFormatting.GRAY).append("If you did not change it in your old instance, the default mode is 'Normal'.\n\n")
.append("Press 'No' if you are not sure! (It will cancel world loading)");

if (!StartupQuery.confirm(modeMessage.toString())) {
Expand Down Expand Up @@ -171,7 +172,7 @@ private static void determineNeededFixesAndLog(SaveHandler save) {
if (!neededFixes.containsKey(fixType)) neededFixes.put(fixType, new ObjectArrayList<>());
neededFixes.get(fixType).add(fix);
if (fix.needsMode) modeNeeded = true;
NomiLabs.LOGGER.info("- {}, {}", fix.name, fix.description);
NomiLabs.LOGGER.info("- {}: {}", fix.name, fix.description);
}
}
NomiLabs.LOGGER.info("END SECTION: {}. SEE ABOVE. ^^^^^^^^^^^^^^^^^^^^^^^^^^^", fixType);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public static void init() {
tileEntityFixes = new ObjectArrayList<>();

tileEntityFixes.add(
new DataFix.TileEntityFix("Multiblock Tile Entity MetaId Remap",
new DataFix.TileEntityFix("Old Multiblock Tile Entity Meta ID Remap",
"Remaps old Multiblock Tile Entity Names to the new format.",
false,
(version) -> version <= DEFAULT_NOMI_CEU_VERSION,
Expand Down

0 comments on commit 5573761

Please sign in to comment.