|
|
@ -102,4 +102,21 @@ public abstract class AbstractWireTileEntity extends TileEntity {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void prepForDelete() {
|
|
|
|
|
|
|
|
if(outputs != null) {
|
|
|
|
|
|
|
|
for (int i = 0; i < outputs.length; ++i) {
|
|
|
|
|
|
|
|
if (outputs[i].wire != null && outputs[i].wire.thisslot > -1) {
|
|
|
|
|
|
|
|
WireConnection wire = outputs[i].wire;
|
|
|
|
|
|
|
|
AbstractWireTileEntity otherChip = (AbstractWireTileEntity)this.worldObj.getBlockTileEntity(wire.x, wire.y, wire.z);
|
|
|
|
|
|
|
|
if(otherChip != null && otherChip.inputs != null) {
|
|
|
|
|
|
|
|
outputs[i].floatvalue = 0;
|
|
|
|
|
|
|
|
outputs[i].stringvalue = "";
|
|
|
|
|
|
|
|
this.updateIO();
|
|
|
|
|
|
|
|
otherChip.update();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|