X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fwires%2FGUIWire.java;h=31285bba7c017e909cb0a5926b71ce9825c6b0da;hb=055d61dd8838c5926e78c9931cd4dcf16f761941;hp=7225e8edacf4bb618f1663ec0cc06d5e8a87a82a;hpb=ef7a6d3731b1d16480a4b157ab43cd9f7043de1f;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/wires/GUIWire.java b/LogicUI/src/era/mi/gui/wires/GUIWire.java index 7225e8ed..31285bba 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)