Fix ghost gate being created on client that was preventing blockActivated from being called on client.

This commit is contained in:
Runetinal 2012-11-05 20:11:22 -06:00
parent 26213ba615
commit 3ec3f37c34

View file

@ -59,7 +59,7 @@ public class TileGenericPipe extends TileEntity implements IPowerReceptor, ITank
private class CoreState implements IClientState {
public int pipeId = -1;
public int gateKind = 0;
public int gateKind = -1;
@Override
public void writeData(DataOutputStream data) throws IOException {
@ -613,7 +613,7 @@ public class TileGenericPipe extends TileEntity implements IPowerReceptor, ITank
if (pipe == null && coreState.pipeId != 0){
initialize(BlockGenericPipe.createPipe(coreState.pipeId));
}
if (pipe != null) {
if (pipe != null && GateKind.values()[coreState.gateKind] != GateKind.None) {
if (pipe.gate == null) {
pipe.gate = new GateVanilla(pipe);
}