diff options
author | chochem <40274384+chochem@users.noreply.github.com> | 2024-01-02 16:56:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-02 16:56:24 +0100 |
commit | 6ba80b99b5218322fafe29e1294f46df0149bec7 (patch) | |
tree | cb94013fa3062405155b14ccdfccacefa73010bc /src/main/java | |
parent | 6ab4316c047797c25991e1fbd9100e979a24f942 (diff) | |
download | GT5-Unofficial-6ba80b99b5218322fafe29e1294f46df0149bec7.tar.gz GT5-Unofficial-6ba80b99b5218322fafe29e1294f46df0149bec7.tar.bz2 GT5-Unofficial-6ba80b99b5218322fafe29e1294f46df0149bec7.zip |
fix GT oredict log (#2436)
fix oredict log
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/gregtech/loaders/preload/GT_PreLoad.java | 18 |
1 files changed, 8 insertions, 10 deletions
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<String> tList = ((GT_Log.LogBuffer) GT_Log.ore).mBufferedOreDictLog; try { GT_Log.ore = new PrintStream(GT_Log.mOreDictLogFile); } catch (Throwable ignored) {} - try { - List<String> 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)) { |