|
|
|
@ -80,14 +80,9 @@ public abstract class AbstractWireTileEntity extends TileEntity {
|
|
|
|
|
WireConnection wire = outputs[i].wire;
|
|
|
|
|
Boolean doUpdate = false;
|
|
|
|
|
AbstractWireTileEntity otherChip = (AbstractWireTileEntity)this.worldObj.getBlockTileEntity(wire.x, wire.y, wire.z);
|
|
|
|
|
if(otherChip == null){
|
|
|
|
|
if(otherChip == null || otherChip.outputs == null){
|
|
|
|
|
this.outputs[i].wire = new WireConnection();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if(otherChip.outputs == null) {
|
|
|
|
|
this.outputs[i].wire = new WireConnection();
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (outputs[i].floatvalue != otherChip.inputs[wire.thatslot].floatvalue) {
|
|
|
|
|
otherChip.inputs[wire.thatslot].floatvalue = outputs[i].floatvalue;
|
|
|
|
|
doUpdate = true;
|
|
|
|
@ -102,6 +97,7 @@ public abstract class AbstractWireTileEntity extends TileEntity {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void prepForDelete() {
|
|
|
|
|
if(outputs != null) {
|
|
|
|
|