aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArchengius <Zolotuhinnikita2012@gmail.com>2017-04-03 16:37:25 +0700
committerGitHub <noreply@github.com>2017-04-03 16:37:25 +0700
commit8081ba10dfc1c37c9626fc4872be814930db2493 (patch)
tree200ce6a76a987de825d8df2bc431d6c060b734ae
parent454b255f1b7c7bda8aeb31a59dd3cff92e2d1761 (diff)
downloadGT5-Unofficial-8081ba10dfc1c37c9626fc4872be814930db2493.tar.gz
GT5-Unofficial-8081ba10dfc1c37c9626fc4872be814930db2493.tar.bz2
GT5-Unofficial-8081ba10dfc1c37c9626fc4872be814930db2493.zip
Remove deprecated api..
-rw-r--r--src/main/java/gregtech/GT_Mod.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/gregtech/GT_Mod.java b/src/main/java/gregtech/GT_Mod.java
index 35ed3d58e8..ea6a4b5385 100644
--- a/src/main/java/gregtech/GT_Mod.java
+++ b/src/main/java/gregtech/GT_Mod.java
@@ -54,8 +54,6 @@ import net.minecraftforge.oredict.OreDictionary;
import org.apache.commons.lang3.StringUtils;
import java.io.*;
-import java.time.LocalDate;
-import java.time.ZoneId;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
@@ -257,10 +255,9 @@ public class GT_Mod implements IGT_Mod {
gregtechproxy.mAddGTRecipesToIC2Machines = tMainConfig.get("general", "AddGTRecipesToIC2Machines", true).getBoolean(true);
gregtechproxy.mUndergroundOil.getConfig(tMainConfig, "undergroundfluid");
gregtechproxy.mLowGravProcessing = Loader.isModLoaded(GT_Values.MOD_ID_GC_CORE) && tMainConfig.get("general", "LowGravProcessing", true).getBoolean(true);
- LocalDate tDate = new Date().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();
- gregtechproxy.mAprilFool = GregTech_API.sSpecialFile.get(ConfigCategories.general, "AprilFool", tDate.getMonthValue()==4 && tDate.getDayOfMonth() == 1);
+ Calendar now = Calendar.getInstance();
+ gregtechproxy.mAprilFool = GregTech_API.sSpecialFile.get(ConfigCategories.general, "AprilFool", now.get(Calendar.MONTH) == Calendar.APRIL && now.get(Calendar.DAY_OF_MONTH) == 1).getBoolean(false);
gregtechproxy.mCropNeedBlock = tMainConfig.get("general", "CropNeedBlockBelow", true).getBoolean(true);
-
GregTech_API.mOutputRF = GregTech_API.sOPStuff.get(ConfigCategories.general, "OutputRF", true);
GregTech_API.mInputRF = GregTech_API.sOPStuff.get(ConfigCategories.general, "InputRF", false);
GregTech_API.mEUtoRF = GregTech_API.sOPStuff.get(ConfigCategories.general, "100EUtoRF", 360);
@@ -1108,4 +1105,4 @@ public class GT_Mod implements IGT_Mod {
public void doSonictronSound(ItemStack aStack, World aWorld, double aX, double aY, double aZ) {
gregtechproxy.doSonictronSound(aStack, aWorld, aX, aY, aZ);
}
-} \ No newline at end of file
+}