Replace BCAction and BCTrigger arrays with IAction and ITrigger arrays. Good catch AartBluestoke
This commit is contained in:
parent
bd91c3ad21
commit
5703c85549
1 changed files with 4 additions and 6 deletions
|
@ -36,8 +36,6 @@ import buildcraft.api.transport.IPipe;
|
||||||
import buildcraft.core.IDropControlInventory;
|
import buildcraft.core.IDropControlInventory;
|
||||||
import buildcraft.core.network.TilePacketWrapper;
|
import buildcraft.core.network.TilePacketWrapper;
|
||||||
import buildcraft.core.triggers.ActionRedstoneOutput;
|
import buildcraft.core.triggers.ActionRedstoneOutput;
|
||||||
import buildcraft.core.triggers.BCAction;
|
|
||||||
import buildcraft.core.triggers.BCTrigger;
|
|
||||||
import buildcraft.core.utils.Utils;
|
import buildcraft.core.utils.Utils;
|
||||||
import buildcraft.transport.Gate.GateConditional;
|
import buildcraft.transport.Gate.GateConditional;
|
||||||
import buildcraft.transport.pipes.PipeLogic;
|
import buildcraft.transport.pipes.PipeLogic;
|
||||||
|
@ -68,9 +66,9 @@ public abstract class Pipe implements IPipe, IDropControlInventory {
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
private static Map<Class, TilePacketWrapper> networkWrappers = new HashMap<Class, TilePacketWrapper>();
|
private static Map<Class, TilePacketWrapper> networkWrappers = new HashMap<Class, TilePacketWrapper>();
|
||||||
|
|
||||||
public ITrigger[] activatedTriggers = new BCTrigger[8];
|
public ITrigger[] activatedTriggers = new ITrigger[8];
|
||||||
public ITriggerParameter[] triggerParameters = new ITriggerParameter[8];
|
public ITriggerParameter[] triggerParameters = new ITriggerParameter[8];
|
||||||
public IAction[] activatedActions = new BCAction[8];
|
public IAction[] activatedActions = new IAction[8];
|
||||||
|
|
||||||
public boolean broadcastSignal[] = new boolean[] { false, false, false, false };
|
public boolean broadcastSignal[] = new boolean[] { false, false, false, false };
|
||||||
public boolean broadcastRedstone = false;
|
public boolean broadcastRedstone = false;
|
||||||
|
@ -523,9 +521,9 @@ public abstract class Pipe implements IPipe, IDropControlInventory {
|
||||||
|
|
||||||
public void resetGate() {
|
public void resetGate() {
|
||||||
gate = null;
|
gate = null;
|
||||||
activatedTriggers = new BCTrigger[activatedTriggers.length];
|
activatedTriggers = new ITrigger[activatedTriggers.length];
|
||||||
triggerParameters = new ITriggerParameter[triggerParameters.length];
|
triggerParameters = new ITriggerParameter[triggerParameters.length];
|
||||||
activatedActions = new BCAction[activatedActions.length];
|
activatedActions = new IAction[activatedActions.length];
|
||||||
broadcastSignal = new boolean[] { false, false, false, false };
|
broadcastSignal = new boolean[] { false, false, false, false };
|
||||||
if (broadcastRedstone) {
|
if (broadcastRedstone) {
|
||||||
updateNeighbors(true);
|
updateNeighbors(true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue