Re-added support for OpenComputers, fixes #1423

This commit is contained in:
raoulvdberge
2017-08-19 14:58:29 +02:00
parent 7c0839863e
commit fccd96f3e6
7 changed files with 16 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
/*package com.raoulvdberge.refinedstorage.integration.oc;
package com.raoulvdberge.refinedstorage.integration.oc;
import com.raoulvdberge.refinedstorage.api.autocrafting.ICraftingPattern;
import li.cil.oc.api.driver.Converter;
@@ -17,4 +17,3 @@ public class ConverterCraftingPattern implements Converter {
}
}
}
*/

View File

@@ -1,4 +1,4 @@
/*package com.raoulvdberge.refinedstorage.integration.oc;
package com.raoulvdberge.refinedstorage.integration.oc;
import com.raoulvdberge.refinedstorage.api.autocrafting.task.ICraftingTask;
import li.cil.oc.api.driver.Converter;
@@ -17,4 +17,4 @@ public class ConverterCraftingTask implements Converter {
output.put("quantity", task.getQuantity());
}
}
}*/
}

View File

@@ -1,6 +1,6 @@
/*package com.raoulvdberge.refinedstorage.integration.oc;
package com.raoulvdberge.refinedstorage.integration.oc;
import com.raoulvdberge.refinedstorage.proxy.CapabilityNetworkNodeProxy;
import com.raoulvdberge.refinedstorage.capability.CapabilityNetworkNodeProxy;
import li.cil.oc.api.Driver;
import li.cil.oc.api.driver.DriverBlock;
import li.cil.oc.api.network.ManagedEnvironment;
@@ -28,4 +28,4 @@ public class DriverNetwork implements DriverBlock {
Driver.add(new ConverterCraftingPattern());
Driver.add(new ConverterCraftingTask());
}
}*/
}

View File

@@ -1,4 +1,4 @@
/*package com.raoulvdberge.refinedstorage.integration.oc;
package com.raoulvdberge.refinedstorage.integration.oc;
import com.raoulvdberge.refinedstorage.api.autocrafting.ICraftingPattern;
import com.raoulvdberge.refinedstorage.api.autocrafting.task.ICraftingTask;
@@ -312,4 +312,4 @@ public class EnvironmentNetwork extends AbstractManagedEnvironment {
return new Object[]{node.getNetwork().getItemStorageCache().getList().getStacks()};
}
}*/
}

View File

@@ -24,6 +24,8 @@ import com.raoulvdberge.refinedstorage.capability.CapabilityNetworkNodeProxy;
import com.raoulvdberge.refinedstorage.gui.GuiHandler;
import com.raoulvdberge.refinedstorage.integration.craftingtweaks.IntegrationCraftingTweaks;
import com.raoulvdberge.refinedstorage.integration.forgeenergy.ReaderWriterHandlerForgeEnergy;
import com.raoulvdberge.refinedstorage.integration.oc.DriverNetwork;
import com.raoulvdberge.refinedstorage.integration.oc.IntegrationOC;
import com.raoulvdberge.refinedstorage.network.*;
import com.raoulvdberge.refinedstorage.tile.*;
import com.raoulvdberge.refinedstorage.tile.craftingmonitor.TileCraftingMonitor;
@@ -243,9 +245,9 @@ public class ProxyCommon {
SoldererRecipeLoader.load();
/*if (IntegrationOC.isLoaded()) {
if (IntegrationOC.isLoaded()) {
DriverNetwork.register();
}*/
}
if (IntegrationCraftingTweaks.isLoaded()) {
IntegrationCraftingTweaks.register();