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