aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2020-01-15 18:32:55 +0000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2020-01-15 18:32:55 +0000
commit4965a19cdb0a4d7a6bf3cc4e4584986a2d4520fa (patch)
treefe2d540e5c56b0ef66f62e5120b45802212200b8 /src/Java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java
parentab874b1c3b0a269787958ac10f69fbc2817e738e (diff)
downloadGT5-Unofficial-4965a19cdb0a4d7a6bf3cc4e4584986a2d4520fa.tar.gz
GT5-Unofficial-4965a19cdb0a4d7a6bf3cc4e4584986a2d4520fa.tar.bz2
GT5-Unofficial-4965a19cdb0a4d7a6bf3cc4e4584986a2d4520fa.zip
$ Fixed Overflow Valves properly this time.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java b/src/Java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java
index 430ae44d64..ef013fa3a2 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/Meta_GT_Proxy.java
@@ -1,16 +1,11 @@
package gtPlusPlus.xmod.gregtech.common;
-import static gtPlusPlus.xmod.gregtech.common.covers.GTPP_Cover_Overflow.mOverflowCache;
-
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
-import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
-import java.util.Timer;
-import java.util.TimerTask;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
@@ -29,7 +24,6 @@ import gregtech.api.util.Recipe_GT;
import gregtech.common.GT_Proxy;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.api.objects.data.AutoMap;
-import gtPlusPlus.api.objects.data.ObjMap;
import gtPlusPlus.api.objects.minecraft.FormattedTooltipString;
import gtPlusPlus.core.handler.AchievementHandler;
import gtPlusPlus.core.lib.CORE;
@@ -117,7 +111,6 @@ public class Meta_GT_Proxy {
}
public static void init() {
- scheduleCoverMapCleaner();
setValidHeatingCoilMetas();
PollutionUtils.setPollutionFluids();
fixIC2FluidNames();
@@ -435,47 +428,6 @@ public class Meta_GT_Proxy {
}
}
-
- public static void scheduleCoverMapCleaner(){
- TimerTask repeatedTask = new TimerTask() {
- public void run() {
- cleanupOverFlowCoverCache();
- }
- };
- Timer timer = new Timer("CoverCleanupManager");
- long delay = 120000L;
- long period = 300000L;
- timer.scheduleAtFixedRate(repeatedTask, delay, period);
- }
-
- public static int cleanupOverFlowCoverCache() {
- ObjMap<String, ?> cache = mOverflowCache;
- int aRemoved = 0;
- long aCurrentTime = System.currentTimeMillis()/1000;
- for (Object o : cache.values()) {
- if (o != null && o instanceof HashMap) {
- @SuppressWarnings("unchecked")
- HashMap<String, Object> m = (HashMap<String, Object>) o;
- if (m != null) {
- String s = (String) m.get("aCoverKey");
- if (m.containsKey("aLastUpdatedTime")) {
- long mapTime = (long) m.get("mLastUpdatedTime");
- if ((aCurrentTime-(mapTime/1000) > 30)){
- mOverflowCache.remove(s);
- aRemoved++;
- }
- }
- else {
- mOverflowCache.remove(s);
- aRemoved++;
- }
- }
- }
- }
- return aRemoved;
- }
-
-
static GT_Proxy[] mProxies = new GT_Proxy[2];
/**