package techreborn.compat.opencomputers;

import li.cil.oc.api.Driver;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import techreborn.compat.ICompatModule;

public class CompatOpenComputers implements ICompatModule {
	@Override
	public void preInit(FMLPreInitializationEvent event) {

	}

	@Override
	public void init(FMLInitializationEvent event) {

	}

	@Override
	public void postInit(FMLPostInitializationEvent event) {
		Driver.add(new DriverMachine());
	}

	@Override
	public void serverStarting(FMLServerStartingEvent event) {

	}
}

@@ -565,32 +565,66 @@
 nEvent event) %7B%0A
+%09%09Driver.add(new DriverMachine());
 %0A%09%7D%0A%0A%09@Override%0A
@@ -685,42 +685,8 @@
 ) %7B%0A
-%09%09Driver.add(new DriverMachine());
 %0A%09%7D%0A

Fix crash with OC compat