|
|
|
@ -11,8 +11,7 @@ public abstract class AbstractWireTileEntity extends TileEntity {
|
|
|
|
|
public boolean initialized = false;
|
|
|
|
|
public boolean hasSettings = false;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void updateEntity() {
|
|
|
|
|
public void update() {
|
|
|
|
|
updateIO();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -79,6 +78,7 @@ public abstract class AbstractWireTileEntity extends TileEntity {
|
|
|
|
|
for (int i = 0; i < outputs.length; ++i) {
|
|
|
|
|
if (outputs[i].wire != null && outputs[i].wire.thisslot > -1) {
|
|
|
|
|
WireConnection wire = outputs[i].wire;
|
|
|
|
|
Boolean doUpdate = false;
|
|
|
|
|
AbstractWireTileEntity otherChip = (AbstractWireTileEntity)this.worldObj.getBlockTileEntity(wire.x, wire.y, wire.z);
|
|
|
|
|
if(otherChip == null){
|
|
|
|
|
this.outputs[i].wire = new WireConnection();
|
|
|
|
@ -90,10 +90,14 @@ public abstract class AbstractWireTileEntity extends TileEntity {
|
|
|
|
|
}
|
|
|
|
|
if(outputs[i].floatvalue != otherChip.inputs[wire.thatslot].floatvalue) {
|
|
|
|
|
otherChip.inputs[wire.thatslot].floatvalue = outputs[i].floatvalue;
|
|
|
|
|
doUpdate = true;
|
|
|
|
|
}
|
|
|
|
|
if(!outputs[i].stringvalue.equals(otherChip.inputs[wire.thatslot].stringvalue)) {
|
|
|
|
|
otherChip.inputs[wire.thatslot].stringvalue = outputs[i].stringvalue;
|
|
|
|
|
doUpdate = true;
|
|
|
|
|
}
|
|
|
|
|
if(doUpdate)
|
|
|
|
|
otherChip.update();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|