diff options
author | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2018-09-19 20:14:31 +0200 |
---|---|---|
committer | bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> | 2018-09-19 20:14:31 +0200 |
commit | b5529dcc6b0cde98c9f2b97408503136385b569f (patch) | |
tree | c39b1a1e9e1ef170e31acb9b659add270aad9ece /src/main/java/gregtech/GT_Mod.java | |
parent | 3cce53ccc294c7686d2c4b7bffbedc6e182cb06d (diff) | |
download | GT5-Unofficial-b5529dcc6b0cde98c9f2b97408503136385b569f.tar.gz GT5-Unofficial-b5529dcc6b0cde98c9f2b97408503136385b569f.tar.bz2 GT5-Unofficial-b5529dcc6b0cde98c9f2b97408503136385b569f.zip |
added explosion log
+readded GalacticraftFiles for @mitchej123 GC Compat
+fixed a typo in IGregTechTileEntity
Diffstat (limited to 'src/main/java/gregtech/GT_Mod.java')
-rw-r--r-- | src/main/java/gregtech/GT_Mod.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/gregtech/GT_Mod.java b/src/main/java/gregtech/GT_Mod.java index b89ee6a9b5..5fc8e13f3a 100644 --- a/src/main/java/gregtech/GT_Mod.java +++ b/src/main/java/gregtech/GT_Mod.java @@ -203,6 +203,20 @@ public class GT_Mod implements IGT_Mod { } catch (Throwable e) { } } + if (tMainConfig.get(aTextGeneral, "LoggingExplosions", true).getBoolean(true)) { + GT_Log.mExplosionLog = new File(aEvent.getModConfigurationDirectory().getParentFile(), "logs/Explosion.log"); + if (!GT_Log.mExplosionLog.exists()) { + try { + GT_Log.mExplosionLog.createNewFile(); + } catch (Throwable e) { + } + } + try { + GT_Log.exp = new PrintStream(GT_Log.mExplosionLog); + } catch (Throwable e) { + } + } + if (tMainConfig.get(aTextGeneral, "LoggingPlayerActivity", true).getBoolean(true)) { GT_Log.mPlayerActivityLogFile = new File(aEvent.getModConfigurationDirectory().getParentFile(), "logs/PlayerActivity.log"); if (!GT_Log.mPlayerActivityLogFile.exists()) { |