diff --git a/build.gradle b/build.gradle index cb591c5d6..31d5d58c3 100644 --- a/build.gradle +++ b/build.gradle @@ -65,14 +65,6 @@ repositories { name 'buildcraft' url 'https://mod-buildcraft.com/maven/' } - maven { - name 'thiakil.io' - url 'https://thiakil.github.io/maven/' - } - maven { - name 'thiakil mirror' //in case GitHub doesn't like maven being hosted in GH Pages - url 'http://maven.thiakil.com' - } } // Define properties file @@ -109,9 +101,6 @@ dependencies { deobfCompile "mcp.mobius.waila:Hwyla:${config.hwyla_version}" deobfCompile "cofh:RedstoneFlux:${config.minecraft_version}-${config.redstoneflux_version}:universal" deobfCompile "com.mod-buildcraft:buildcraft-api:${config.buildcraft_version}" - compile ("com.jaquadro.minecraft.storagedrawers:StorageDrawers:${config.minecraft_version}-${config.storagedrawers_version}:api") { - exclude module: "Chameleon" // we only use the API, which doesn't need Chameleon - } } processResources diff --git a/build.properties b/build.properties index 5c03af7e5..e4bb302eb 100644 --- a/build.properties +++ b/build.properties @@ -10,4 +10,3 @@ opencomputers_version=1.7.0.24 hwyla_version=1.8.18-B32_1.12 redstoneflux_version=2.0.0.1 buildcraft_version=7.99.6 -storagedrawers_version=4.2.10 \ No newline at end of file diff --git a/src/main/java/mekanism/common/integration/MekanismHooks.java b/src/main/java/mekanism/common/integration/MekanismHooks.java index dc02e0721..e33b3f8b4 100644 --- a/src/main/java/mekanism/common/integration/MekanismHooks.java +++ b/src/main/java/mekanism/common/integration/MekanismHooks.java @@ -16,7 +16,6 @@ import mekanism.common.Resource; import mekanism.common.block.states.BlockStateTransmitter.TransmitterType; import mekanism.common.integration.computer.CCPeripheral; import mekanism.common.integration.computer.OCDriver; -import mekanism.common.integration.storagedrawer.StorageDrawerRecipeHandler; import mekanism.common.recipe.RecipeHandler; import mekanism.common.util.MekanismUtils; import net.minecraft.init.Items; @@ -81,11 +80,6 @@ public final class MekanismHooks { //loadMettallurgy(); } - - if(Loader.isModLoaded("storagedrawers")) - { - StorageDrawerRecipeHandler.register(); - } } @Method(modid = "IC2") diff --git a/src/main/java/mekanism/common/integration/storagedrawer/StorageDrawerRecipeHandler.java b/src/main/java/mekanism/common/integration/storagedrawer/StorageDrawerRecipeHandler.java deleted file mode 100644 index 47b7d45be..000000000 --- a/src/main/java/mekanism/common/integration/storagedrawer/StorageDrawerRecipeHandler.java +++ /dev/null @@ -1,55 +0,0 @@ -package mekanism.common.integration.storagedrawer; - -import com.jaquadro.minecraft.storagedrawers.api.IStorageDrawersApi; -import com.jaquadro.minecraft.storagedrawers.api.StorageDrawersApi; -import com.jaquadro.minecraft.storagedrawers.api.registry.IRecipeHandler; -import com.jaquadro.minecraft.storagedrawers.api.registry.IRecipeHandlerRegistry; -import mekanism.common.recipe.ShapedMekanismRecipe; -import mekanism.common.recipe.ShapelessMekanismRecipe; - -import net.minecraft.item.crafting.IRecipe; - -import java.util.List; - -public class StorageDrawerRecipeHandler -{ - private StorageDrawerRecipeHandler(){} - - public static void register() - { - IStorageDrawersApi api = StorageDrawersApi.instance(); - if(api == null) - { - return; - } - IRecipeHandlerRegistry recipeHandlerRegistry = api.recipeHandlerRegistry(); - recipeHandlerRegistry.registerRecipeHandler(ShapedMekanismRecipe.class, new ShapedMekanismRecipeHandler()); - recipeHandlerRegistry.registerRecipeHandler(ShapelessMekanismRecipe.class, new ShapelessMekanismRecipeHandler()); - } - - private static class ShapedMekanismRecipeHandler implements IRecipeHandler - { - @Override - public Object[] getInputAsArray (IRecipe recipe) { - return ((ShapedMekanismRecipe) recipe).getInput(); - } - - @Override - public List getInputAsList (IRecipe recipe) { - return null; - } - } - - private static class ShapelessMekanismRecipeHandler implements IRecipeHandler - { - @Override - public Object[] getInputAsArray (IRecipe recipe) { - return null; - } - - @Override - public List getInputAsList (IRecipe recipe) { - return ((ShapelessMekanismRecipe) recipe).getInput(); - } - } -}