Skip to content

Commit

Permalink
Fix OpenComputers component not properly loaded for Particle Generato…
Browse files Browse the repository at this point in the history
…r (and probably other components) (#63)
  • Loading branch information
YamiKami-Sama authored Mar 8, 2025
1 parent e039519 commit 565fc72
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

import com.brandon3055.draconicevolution.integration.computers.IDEPeripheral;

import li.cil.oc.api.Network;
import li.cil.oc.api.driver.NamedBlock;
import li.cil.oc.api.machine.Arguments;
import li.cil.oc.api.machine.Context;
import li.cil.oc.api.network.ManagedPeripheral;
import li.cil.oc.api.network.Visibility;
import li.cil.oc.api.prefab.ManagedEnvironment;

/**
Expand All @@ -17,6 +19,7 @@ public class DEManagedPeripheral extends ManagedEnvironment implements ManagedPe

public DEManagedPeripheral(IDEPeripheral peripheral) {
this.peripheral = peripheral;
super.setNode(Network.newNode(this, Visibility.Network).withComponent(peripheral.getName()).create());
}

@Override
Expand Down

0 comments on commit 565fc72

Please sign in to comment.