mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-16 18:55:03 -04:00
Import cleanup.
This commit is contained in:
parent
55b5041149
commit
fdf0f8f2bc
@ -10,7 +10,6 @@ import li.cil.oc.util.mods.{Mods, StargateTech2}
|
||||
import net.minecraft.nbt.NBTTagCompound
|
||||
import stargatetech2.api.bus.{IBusInterface, IBusDevice}
|
||||
import stargatetech2.api.StargateTechAPI
|
||||
import li.cil.oc.server.component.AbstractBus
|
||||
|
||||
// IMPORTANT: for some reason that is beyond me we cannot implement the
|
||||
// IBusDevice here directly, since we'll get an error if the interface is not
|
||||
@ -33,7 +32,7 @@ trait AbstractBusAware extends TileEntity with network.Environment {
|
||||
if (isAbstractBusAvailable) {
|
||||
if (isServer) {
|
||||
installedComponents.collect {
|
||||
case abstractBus: AbstractBus => abstractBus.busInterface
|
||||
case abstractBus: component.AbstractBus => abstractBus.busInterface
|
||||
}.toArray
|
||||
}
|
||||
else fakeInterface.map(_.asInstanceOf[IBusInterface])
|
||||
|
Loading…
x
Reference in New Issue
Block a user