From 968073604f6eeea356263afcd6731d2441d13ca7 Mon Sep 17 00:00:00 2001 From: Astoria Date: Tue, 4 Apr 2023 10:40:22 -0500 Subject: [PATCH] Update IO on wire connection --- src/main/java/net/brokenmoon/afloydwiremod/gui/GuiWiring.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/brokenmoon/afloydwiremod/gui/GuiWiring.java b/src/main/java/net/brokenmoon/afloydwiremod/gui/GuiWiring.java index 8bae5ca..73b55cc 100644 --- a/src/main/java/net/brokenmoon/afloydwiremod/gui/GuiWiring.java +++ b/src/main/java/net/brokenmoon/afloydwiremod/gui/GuiWiring.java @@ -77,7 +77,9 @@ public class GuiWiring extends GuiScrollable { wireEntity.outputs[guibutton.slot].wire = new WireConnection(this.tool.x, this.tool.y, this.tool.z, guibutton.slot, tool.slot, tool.xadd, tool.yadd, tool.zadd, tool.sideadd, false, tool.red, tool.green, tool.blue, tool.alpha, tool.width); otherEntity.inputs[tool.slot].wire = new WireConnection(this.wireEntity.xCoord, this.wireEntity.yCoord, this.wireEntity.zCoord, tool.slot, guibutton.slot); wireEntity.update(); + wireEntity.updateIO(); otherEntity.update(); + otherEntity.updateIO(); tool.xadd = new ArrayList(); tool.yadd = new ArrayList(); tool.zadd = new ArrayList(); @@ -88,7 +90,9 @@ public class GuiWiring extends GuiScrollable { otherEntity.outputs[tool.slot].wire = new WireConnection(this.wireEntity.xCoord, this.wireEntity.yCoord, this.wireEntity.zCoord, tool.slot, guibutton.slot, tool.xadd, tool.yadd, tool.zadd, tool.sideadd, true, tool.red, tool.green, tool.blue, tool.alpha, tool.width); wireEntity.inputs[guibutton.slot].wire = new WireConnection(this.tool.x, this.tool.y, this.tool.z, guibutton.slot, tool.slot); wireEntity.update(); + wireEntity.updateIO(); otherEntity.update(); + otherEntity.updateIO(); } tool.xadd = new ArrayList(); tool.yadd = new ArrayList();