From 12552b3b043ebfa0888d7c8e251dd2fbfbddd19b Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Wed, 23 Oct 2013 13:30:15 -0700 Subject: [PATCH] Increase Gate respond time --- common/buildcraft/transport/Gate.java | 1 - common/buildcraft/transport/Pipe.java | 17 ++--------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/common/buildcraft/transport/Gate.java b/common/buildcraft/transport/Gate.java index 2c356c31..275a1441 100644 --- a/common/buildcraft/transport/Gate.java +++ b/common/buildcraft/transport/Gate.java @@ -251,7 +251,6 @@ public abstract class Gate { for (int i = 0; i < oldBroadcastSignal.length; ++i) { if (oldBroadcastSignal[i] != broadcastSignal[i]) { - // worldObj.markBlockNeedsUpdate(container.xCoord, container.yCoord, zCoord); pipe.container.scheduleRenderUpdate(); pipe.updateSignalState(); break; diff --git a/common/buildcraft/transport/Pipe.java b/common/buildcraft/transport/Pipe.java index bfdf4955..fe0b9ebb 100644 --- a/common/buildcraft/transport/Pipe.java +++ b/common/buildcraft/transport/Pipe.java @@ -139,15 +139,11 @@ public abstract class Pipe implements IPipe, IDropContr if (container.worldObj.isRemote) return; - if (actionTracker.markTimeIfDelay(container.worldObj, 10)) { - resolveActions(); - } - // Update the gate if we have any if (gate != null) { + gate.resolveActions(); gate.update(); } - } private void internalUpdate() { @@ -297,9 +293,7 @@ public abstract class Pipe implements IPipe, IDropContr internalUpdateScheduled = true; if (oldSignal == 0) { - // worldObj.markBlockNeedsUpdate(container.xCoord, container.yCoord, zCoord); container.scheduleRenderUpdate(); - } return true; @@ -372,7 +366,7 @@ public abstract class Pipe implements IPipe, IDropContr return false; if (container.hasPlug(side)) return false; - + int connections = 0; ForgeDirection targetOrientation = ForgeDirection.UNKNOWN; for (ForgeDirection o : ForgeDirection.VALID_DIRECTIONS) { @@ -458,13 +452,6 @@ public abstract class Pipe implements IPipe, IDropContr container.scheduleRenderUpdate(); } - private void resolveActions() { - if (!hasGate()) - return; - - gate.resolveActions(); - } - protected void actionsActivated(Map actions) { }