From 6d7e3b8f392d6f5c0e4518d80f7c202c69e16adb Mon Sep 17 00:00:00 2001 From: Walker Fowlkes Date: Sat, 13 Apr 2024 14:15:43 -0700 Subject: [PATCH] after alot of jank. I am pleased to present. GLass cables --- .../net/brokenmoon/redcontrol/blockentities/Peripheral.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/brokenmoon/redcontrol/blockentities/Peripheral.java b/src/main/java/net/brokenmoon/redcontrol/blockentities/Peripheral.java index b53c86c..4a3786a 100644 --- a/src/main/java/net/brokenmoon/redcontrol/blockentities/Peripheral.java +++ b/src/main/java/net/brokenmoon/redcontrol/blockentities/Peripheral.java @@ -21,6 +21,9 @@ public abstract class Peripheral extends BlockEntity implements RedBus.Periphera } public RCWorldBus getBus(){ + if (this.worldBus == null || !this.worldBus.getValid()) { + this.worldBus = new RCWorldBus(new RedBus(),world,getPos()); + } return this.worldBus; }