Fix legacy Gate code on the Pipe

Why does NO ONE ever test builds on old worlds? Compatibility between MC
versions is a huge priority!
This commit is contained in:
CovertJaguar 2013-07-27 19:23:50 -07:00
parent 54677904f0
commit a3565c71c6

View file

@ -185,6 +185,7 @@ public abstract class Pipe<T extends PipeTransport> implements IPipe, IDropContr
}
// Legacy update code
if (hasGate()) {
for (int i = 0; i < 8; ++i) {
if (data.hasKey("trigger[" + i + "]"))
gate.triggers[i] = ActionManager.getTriggerFromLegacyId(data.getInteger("trigger[" + i + "]"));
@ -196,6 +197,7 @@ public abstract class Pipe<T extends PipeTransport> implements IPipe, IDropContr
}
}
}
}
private boolean initialized = false;
public boolean needsInit() {