Ok, so client pipes do need to tick some stuff

Closes #1128
This commit is contained in:
CovertJaguar 2013-08-16 02:38:38 -07:00
parent 8d7b50fa22
commit 613af8c155

View file

@ -149,21 +149,25 @@ public class TileGenericPipe extends TileEntity implements IPowerReceptor, IFlui
@Override
public void updateEntity() {
if (worldObj.isRemote)
return;
if (!worldObj.isRemote) {
if (deletePipe)
worldObj.setBlockToAir(xCoord, yCoord, zCoord);
if (deletePipe)
worldObj.setBlockToAir(xCoord, yCoord, zCoord);
if (pipe == null)
return;
if (pipe == null)
return;
if (!initialized)
initialize(pipe);
if (!initialized)
initialize(pipe);
}
if (!BlockGenericPipe.isValid(pipe))
return;
pipe.updateEntity();
if (worldObj.isRemote)
return;
if (blockNeighborChange) {
computeConnections();
pipe.onNeighborBlockChange(0);
@ -177,12 +181,8 @@ public class TileGenericPipe extends TileEntity implements IPowerReceptor, IFlui
}
PowerReceiver provider = getPowerReceiver(null);
if (provider != null)
provider.update();
if (pipe != null)
pipe.updateEntity();
}
// PRECONDITION: worldObj must not be null
@ -608,7 +608,7 @@ public class TileGenericPipe extends TileEntity implements IPowerReceptor, IFlui
case 0:
if (pipe == null && coreState.pipeId != 0)
initialize(BlockGenericPipe.createPipe(coreState.pipeId));
if (pipe != null && coreState.gateKind != GateKind.None.ordinal()) {
if (pipe.gate == null)
pipe.gate = new GateVanilla(pipe);