Increase Gate respond time

This commit is contained in:
CovertJaguar 2013-10-23 13:30:15 -07:00
parent c16a0266e8
commit 12552b3b04
2 changed files with 2 additions and 16 deletions

View file

@ -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;

View file

@ -139,15 +139,11 @@ public abstract class Pipe<T extends PipeTransport> 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<T extends PipeTransport> implements IPipe, IDropContr
internalUpdateScheduled = true;
if (oldSignal == 0) {
// worldObj.markBlockNeedsUpdate(container.xCoord, container.yCoord, zCoord);
container.scheduleRenderUpdate();
}
return true;
@ -458,13 +452,6 @@ public abstract class Pipe<T extends PipeTransport> implements IPipe, IDropContr
container.scheduleRenderUpdate();
}
private void resolveActions() {
if (!hasGate())
return;
gate.resolveActions();
}
protected void actionsActivated(Map<IAction, Boolean> actions) {
}