Made LogicUI compatible with ReadEnd and ReadWriteEnd
[Mograsim.git] / LogicUI / src / era / mi / gui / wires / GUIWire.java
index 7225e8e..31285bb 100644 (file)
@@ -35,7 +35,7 @@ public class GUIWire
                this.path[this.path.length - 2] = component2Pos.x + component2ConnectionPoint.x;\r
                this.path[this.path.length - 1] = component2Pos.y + component2ConnectionPoint.y;\r
 \r
-               wire.addObserver((initiator, oldValues) -> redraw.run());\r
+               wire.createReadOnlyEnd().addObserver((initiator, oldValues) -> redraw.run());\r
        }\r
 \r
        public void render(GeneralGC gc)\r