package org.squiddev.cctweaks.integration.openperipheral;

import openperipheral.api.ApiAccess;
import openperipheral.api.adapter.IPeripheralAdapterRegistry;
import org.squiddev.cctweaks.core.utils.DebugLogger;
import org.squiddev.cctweaks.integration.APIIntegration;

/**
 * OpenPeripheral integration
 */
public class OpenPeripheralIntegration extends APIIntegration {
	public OpenPeripheralIntegration() {
		super("OpenPeripheralApi");
	}

	@Override
	public void postInit() {
		if (ApiAccess.isApiPresent(IPeripheralAdapterRegistry.class)) {
			DebugLogger.debug("Registering custom AdapterNetworkedInventory");
			ApiAccess.getApi(IPeripheralAdapterRegistry.class).register(new AdapterNetworkedInventory());
		} else {
			DebugLogger.error("Cannot register AdapterNetworkedInventory");
		}
	}
}

@@ -245,19 +245,19 @@
 gration.
-API
+Mod
 Integrat
@@ -351,11 +351,11 @@
 nds 
-API
+Mod
 Inte
@@ -425,19 +425,16 @@
 ripheral
-Api
 %22);%0A%09%7D%0A%0A

Remove accidental dependency on OpenPeripheral