From 6ba80b99b5218322fafe29e1294f46df0149bec7 Mon Sep 17 00:00:00 2001 From: chochem <40274384+chochem@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:56:24 +0100 Subject: fix GT oredict log (#2436) fix oredict log --- src/main/java/gregtech/loaders/preload/GT_PreLoad.java | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src/main/java/gregtech/loaders') diff --git a/src/main/java/gregtech/loaders/preload/GT_PreLoad.java b/src/main/java/gregtech/loaders/preload/GT_PreLoad.java index 412eb3bba9..a25377fdf6 100644 --- a/src/main/java/gregtech/loaders/preload/GT_PreLoad.java +++ b/src/main/java/gregtech/loaders/preload/GT_PreLoad.java @@ -164,19 +164,17 @@ public class GT_PreLoad { GT_Log.mOreDictLogFile.createNewFile(); } catch (Throwable ignored) {} } + List tList = ((GT_Log.LogBuffer) GT_Log.ore).mBufferedOreDictLog; try { GT_Log.ore = new PrintStream(GT_Log.mOreDictLogFile); } catch (Throwable ignored) {} - try { - List tList = ((GT_Log.LogBuffer) GT_Log.ore).mBufferedOreDictLog; - GT_Log.ore.println("******************************************************************************"); - GT_Log.ore.println("* This is the complete log of the GT5-Unofficial OreDictionary Handler. It *"); - GT_Log.ore.println("* processes all OreDictionary entries and can sometimes cause errors. All *"); - GT_Log.ore.println("* entries and errors are being logged. If you see an error please raise an *"); - GT_Log.ore.println("* issue at https://github.com/Blood-Asp/GT5-Unofficial. *"); - GT_Log.ore.println("******************************************************************************"); - tList.forEach(GT_Log.ore::println); - } catch (Throwable ignored) {} + GT_Log.ore.println("******************************************************************************"); + GT_Log.ore.println("* This is the complete log of the GT5-Unofficial OreDictionary Handler. It *"); + GT_Log.ore.println("* processes all OreDictionary entries and can sometimes cause errors. All *"); + GT_Log.ore.println("* entries and errors are being logged. If you see an error please raise an *"); + GT_Log.ore.println("* issue at https://github.com/GTNewHorizons/GT-New-Horizons-Modpack/issues. *"); + GT_Log.ore.println("******************************************************************************"); + tList.forEach(GT_Log.ore::println); } if (tMainConfig.get(GT_Mod.aTextGeneral, "LoggingExplosions", true) .getBoolean(true)) { -- cgit