aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/GT_Mod.java
diff options
context:
space:
mode:
authorbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2018-09-19 20:14:31 +0200
committerbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2018-09-19 20:14:31 +0200
commitb5529dcc6b0cde98c9f2b97408503136385b569f (patch)
treec39b1a1e9e1ef170e31acb9b659add270aad9ece /src/main/java/gregtech/GT_Mod.java
parent3cce53ccc294c7686d2c4b7bffbedc6e182cb06d (diff)
downloadGT5-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.java14
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()) {