Increase Gate respond time
This commit is contained in:
parent
c16a0266e8
commit
12552b3b04
2 changed files with 2 additions and 16 deletions
|
@ -251,7 +251,6 @@ public abstract class Gate {
|
||||||
|
|
||||||
for (int i = 0; i < oldBroadcastSignal.length; ++i) {
|
for (int i = 0; i < oldBroadcastSignal.length; ++i) {
|
||||||
if (oldBroadcastSignal[i] != broadcastSignal[i]) {
|
if (oldBroadcastSignal[i] != broadcastSignal[i]) {
|
||||||
// worldObj.markBlockNeedsUpdate(container.xCoord, container.yCoord, zCoord);
|
|
||||||
pipe.container.scheduleRenderUpdate();
|
pipe.container.scheduleRenderUpdate();
|
||||||
pipe.updateSignalState();
|
pipe.updateSignalState();
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -139,15 +139,11 @@ public abstract class Pipe<T extends PipeTransport> implements IPipe, IDropContr
|
||||||
if (container.worldObj.isRemote)
|
if (container.worldObj.isRemote)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (actionTracker.markTimeIfDelay(container.worldObj, 10)) {
|
|
||||||
resolveActions();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update the gate if we have any
|
// Update the gate if we have any
|
||||||
if (gate != null) {
|
if (gate != null) {
|
||||||
|
gate.resolveActions();
|
||||||
gate.update();
|
gate.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void internalUpdate() {
|
private void internalUpdate() {
|
||||||
|
@ -297,9 +293,7 @@ public abstract class Pipe<T extends PipeTransport> implements IPipe, IDropContr
|
||||||
internalUpdateScheduled = true;
|
internalUpdateScheduled = true;
|
||||||
|
|
||||||
if (oldSignal == 0) {
|
if (oldSignal == 0) {
|
||||||
// worldObj.markBlockNeedsUpdate(container.xCoord, container.yCoord, zCoord);
|
|
||||||
container.scheduleRenderUpdate();
|
container.scheduleRenderUpdate();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -372,7 +366,7 @@ public abstract class Pipe<T extends PipeTransport> implements IPipe, IDropContr
|
||||||
return false;
|
return false;
|
||||||
if (container.hasPlug(side))
|
if (container.hasPlug(side))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int connections = 0;
|
int connections = 0;
|
||||||
ForgeDirection targetOrientation = ForgeDirection.UNKNOWN;
|
ForgeDirection targetOrientation = ForgeDirection.UNKNOWN;
|
||||||
for (ForgeDirection o : ForgeDirection.VALID_DIRECTIONS) {
|
for (ForgeDirection o : ForgeDirection.VALID_DIRECTIONS) {
|
||||||
|
@ -458,13 +452,6 @@ public abstract class Pipe<T extends PipeTransport> implements IPipe, IDropContr
|
||||||
container.scheduleRenderUpdate();
|
container.scheduleRenderUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void resolveActions() {
|
|
||||||
if (!hasGate())
|
|
||||||
return;
|
|
||||||
|
|
||||||
gate.resolveActions();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void actionsActivated(Map<IAction, Boolean> actions) {
|
protected void actionsActivated(Map<IAction, Boolean> actions) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue