blob: 4c03244091f08829724f6b2e92d2629d6f81af7d [file] [log] [blame] [raw]
package li.cil.oc.integration.computercraft
import li.cil.oc.api.Driver
import li.cil.oc.integration.ModProxy
import li.cil.oc.integration.Mods
object ModComputerCraft extends ModProxy {
override def getMod = Mods.ComputerCraft
override def initialize() {
PeripheralProvider.init()
Driver.add(DriverComputerCraftMedia)
try {
val driver = new DriverPeripheral()
if (driver.isValid) {
Driver.add(new ConverterLuaObject)
Driver.add(driver)
}
}
catch {
case ignored: Throwable =>
}
}
}