Fix ghost gate being created on client that was preventing blockActivated from being called on client.
This commit is contained in:
parent
26213ba615
commit
3ec3f37c34
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue