Tentatively fixed OpenComputers dependency
This commit is contained in:
parent
01b199e175
commit
256b0b31d0
1 changed files with 6 additions and 1 deletions
|
@ -25,7 +25,7 @@ public abstract class WarpInterfacedTE extends WarpTE implements IPeripheral, En
|
|||
WarpInterfacedTE() {
|
||||
super();
|
||||
if (Loader.isModLoaded("OpenComputers")) {
|
||||
OC_node = Network.newNode(this, Visibility.Network).withComponent(peripheralName).create();
|
||||
OC_constructor();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -169,6 +169,11 @@ public abstract class WarpInterfacedTE extends WarpTE implements IPeripheral, En
|
|||
}
|
||||
|
||||
// OpenComputers methods
|
||||
@Optional.Method(modid = "OpenComputers")
|
||||
public void OC_constructor() {
|
||||
OC_node = Network.newNode(this, Visibility.Network).withComponent(peripheralName).create();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Optional.Method(modid = "OpenComputers")
|
||||
public Node node() {
|
||||
|
|
Loading…
Reference in a new issue