X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fwires%2FGUIWire.java;h=53e122a3c31abf4055810d48956933ab808e22d7;hb=6d944b4deae46eef98beabdea0dab90c455e14a8;hp=a60d3243e7b658590b51a0099f3109026f18a497;hpb=27e4465d9b23acd5d97dbb4789a70f30c86a9302;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/wires/GUIWire.java b/LogicUI/src/era/mi/gui/wires/GUIWire.java index a60d3243..53e122a3 100644 --- a/LogicUI/src/era/mi/gui/wires/GUIWire.java +++ b/LogicUI/src/era/mi/gui/wires/GUIWire.java @@ -35,7 +35,7 @@ public class GUIWire this.path[this.path.length - 2] = component2Pos.x + component2ConnectionPoint.x; this.path[this.path.length - 1] = component2Pos.y + component2ConnectionPoint.y; - wire.addObserver((initiator, oldValues) -> redraw.run()); + wire.createReadOnlyEnd().addObserver((initiator, oldValues) -> redraw.run()); } public void render(GeneralGC gc)