aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/GTProxy.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/common/GTProxy.java')
-rw-r--r--src/main/java/gregtech/common/GTProxy.java59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/main/java/gregtech/common/GTProxy.java b/src/main/java/gregtech/common/GTProxy.java
index 8b2c153591..ed5ffeb4c8 100644
--- a/src/main/java/gregtech/common/GTProxy.java
+++ b/src/main/java/gregtech/common/GTProxy.java
@@ -36,11 +36,9 @@ import static gregtech.api.util.GTUtil.LAST_BROKEN_TILEENTITY;
import static net.minecraftforge.fluids.FluidRegistry.getFluidStack;
import java.io.File;
-import java.text.DateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
-import java.util.Date;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.HashSet;
@@ -49,10 +47,8 @@ import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.UUID;
-import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
-import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.locks.ReentrantLock;
import java.util.stream.Collectors;
@@ -535,8 +531,6 @@ public abstract class GTProxy implements IGTMod, IFuelHandler {
"infusedteslatiteInsulated",
"redalloyInsulated",
"infusedteslatiteBundled"));
- private final DateFormat mDateFormat = DateFormat.getInstance();
- public final BlockingQueue<String> mBufferedPlayerActivity = new LinkedBlockingQueue<>();
public final GTBlockMap<Boolean> mCTMBlockCache = new GTBlockMap<>();
public boolean mDisableVanillaOres = true;
public boolean mAllowSmallBoilerAutomation = false;
@@ -1226,13 +1220,6 @@ public abstract class GTProxy implements IGTMod, IFuelHandler {
public void onPostLoad() {
GTLog.out.println("GTMod: Beginning PostLoad-Phase.");
- GTLog.ore.println("GTMod: Beginning PostLoad-Phase.");
- if (GTLog.pal != null) {
- final Thread playerActivityLogger = new Thread(new GTPlayerActivityLogger());
- playerActivityLogger.setDaemon(true);
- playerActivityLogger.setName("GT5U Player activity logger");
- playerActivityLogger.start();
- }
GregTechAPI.sPostloadStarted = true;
// This needs to happen late enough that all of the fluids we need have been registered.
@@ -1531,10 +1518,6 @@ public abstract class GTProxy implements IGTMod, IFuelHandler {
}
}
- private String getDataAndTime() {
- return this.mDateFormat.format(new Date());
- }
-
@SubscribeEvent
public void onPlayerInteraction(PlayerInteractEvent aEvent) {
if ((aEvent.entityPlayer == null) || (aEvent.entityPlayer.worldObj == null)
@@ -1542,28 +1525,6 @@ public abstract class GTProxy implements IGTMod, IFuelHandler {
|| (aEvent.world.provider == null)) {
return;
}
- if ((!aEvent.entityPlayer.worldObj.isRemote) && (aEvent.action != PlayerInteractEvent.Action.RIGHT_CLICK_AIR)
- && (GTLog.pal != null)) {
- this.mBufferedPlayerActivity.offer(
- getDataAndTime() + ";"
- + aEvent.action.name()
- + ";"
- + aEvent.entityPlayer.getDisplayName()
- + ";DIM:"
- + aEvent.world.provider.dimensionId
- + ";"
- + aEvent.x
- + ";"
- + aEvent.y
- + ";"
- + aEvent.z
- + ";|;"
- + aEvent.x / 10
- + ";"
- + aEvent.y / 10
- + ";"
- + aEvent.z / 10);
- }
ItemStack aStack = aEvent.entityPlayer.getCurrentEquippedItem();
if ((aStack != null) && (aEvent.action == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK)
&& (aStack.getItem() == Items.flint_and_steel)) {
@@ -1603,26 +1564,6 @@ public abstract class GTProxy implements IGTMod, IFuelHandler {
public void onBlockHarvestingEvent(BlockEvent.HarvestDropsEvent aEvent) {
if (aEvent.harvester == null) return;
- if ((!aEvent.world.isRemote) && (GTLog.pal != null)) {
- this.mBufferedPlayerActivity.offer(
- getDataAndTime() + ";HARVEST_BLOCK;"
- + aEvent.harvester.getDisplayName()
- + ";DIM:"
- + aEvent.world.provider.dimensionId
- + ";"
- + aEvent.x
- + ";"
- + aEvent.y
- + ";"
- + aEvent.z
- + ";|;"
- + aEvent.x / 10
- + ";"
- + aEvent.y / 10
- + ";"
- + aEvent.z / 10);
- }
-
ItemStack aStack = aEvent.harvester.getCurrentEquippedItem();
if (aStack == null) return;