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; }