diff --git a/src/main/java/cr0s/warpdrive/block/movement/TileEntityShipCore.java b/src/main/java/cr0s/warpdrive/block/movement/TileEntityShipCore.java index 69ff4e3e..fb0d9d55 100644 --- a/src/main/java/cr0s/warpdrive/block/movement/TileEntityShipCore.java +++ b/src/main/java/cr0s/warpdrive/block/movement/TileEntityShipCore.java @@ -389,7 +389,7 @@ public class TileEntityShipCore extends TileEntityAbstractEnergy { } else { isolationRate = 0.0D; } - if (WarpDriveConfig.LOGGING_JUMPBLOCKS) { + if (WarpDriveConfig.LOGGING_RADAR) { WarpDrive.logger.info(this + " Isolation updated to " + isolationBlocksCount + " (" + String.format("%.1f", isolationRate * 100.0) + "%)"); } } diff --git a/src/main/java/cr0s/warpdrive/config/WarpDriveConfig.java b/src/main/java/cr0s/warpdrive/config/WarpDriveConfig.java index 5560f51d..709d7e20 100644 --- a/src/main/java/cr0s/warpdrive/config/WarpDriveConfig.java +++ b/src/main/java/cr0s/warpdrive/config/WarpDriveConfig.java @@ -141,6 +141,7 @@ public class WarpDriveConfig { public static boolean LOGGING_WORLDGEN = false; public static boolean LOGGING_PROFILING = true; public static boolean LOGGING_DICTIONARY = false; + public static boolean LOGGING_STARMAP = false; // Planets public static Planet[] PLANETS = null; @@ -422,6 +423,7 @@ public class WarpDriveConfig { LOGGING_WORLDGEN = config.get("logging", "enable_worldgen_logs", LOGGING_WORLDGEN, "Detailled world generation logs to help debug the mod, enable it before reporting a bug").getBoolean(false); LOGGING_PROFILING = config.get("logging", "enable_profiling_logs", LOGGING_PROFILING, "Profiling logs, enable it to check for lag").getBoolean(true); LOGGING_DICTIONARY = config.get("logging", "enable_dictionary_logs", LOGGING_PROFILING, "Dictionary logs, enable it to dump blocks hardness and blast resistance at boot").getBoolean(true); + LOGGING_STARMAP = config.get("logging", "enable_starmap_logs", LOGGING_PROFILING, "Starmap logs, enable it to dump starmap registry updates").getBoolean(false); // Planets { diff --git a/src/main/java/cr0s/warpdrive/data/StarMapRegistry.java b/src/main/java/cr0s/warpdrive/data/StarMapRegistry.java index ad7a85f3..05d60fcd 100644 --- a/src/main/java/cr0s/warpdrive/data/StarMapRegistry.java +++ b/src/main/java/cr0s/warpdrive/data/StarMapRegistry.java @@ -55,7 +55,9 @@ public class StarMapRegistry { registry.set(idx, entryKey); } else { registry.add(entryKey); - printRegistry("added"); + if (WarpDriveConfig.LOGGING_STARMAP) { + printRegistry("added"); + } } } @@ -64,7 +66,9 @@ public class StarMapRegistry { if (idx != -1) { registry.remove(idx); - printRegistry("removed"); + if (WarpDriveConfig.LOGGING_STARMAP) { + printRegistry("removed"); + } } } @@ -205,7 +209,7 @@ public class StarMapRegistry { } if (!isValid) { - if (WarpDriveConfig.LOGGING_JUMP) { + if (WarpDriveConfig.LOGGING_STARMAP) { if (entry == null) { WarpDrive.logger.info("Cleaning up starmap object ~null~"); } else {