package exnihiloadscensio.compatibility;

import crazypants.enderio.machine.sagmill.SagMillRecipeManager;
import exnihiloadscensio.items.ore.ItemOre;
import exnihiloadscensio.registries.OreRegistry;
import net.minecraft.item.ItemStack;

public class CompatEIO {
	
	public static void postInit() {
		registerCrushing();		
	}
	
	public static void registerCrushing() {
		for (ItemOre ore : OreRegistry.getItemOreRegistry()) {
    			SagMillRecipeManager.getInstance().addRecipe(new ItemStack(ore, 1, 1), SagMillRecipeManager.ORE_ENERGY_COST, new ItemStack(ore, 1, 2));
    	}
	}

}

@@ -35,16 +35,232 @@
 ility;%0A%0A
+import crazypants.enderio.machine.recipe.Recipe;%0Aimport crazypants.enderio.machine.recipe.RecipeBonusType;%0Aimport crazypants.enderio.machine.recipe.RecipeInput;%0Aimport crazypants.enderio.machine.recipe.RecipeOutput;%0A
 import c
@@ -685,24 +685,51 @@
 dRecipe(new 
+Recipe(new RecipeInput(new 
 ItemStack(or
@@ -737,16 +737,23 @@
 , 1, 1),
+ true),
  SagMill
@@ -783,16 +783,55 @@
 Y_COST, 
+RecipeBonusType.NONE, new RecipeOutput(
 new Item
@@ -845,14 +845,16 @@
 re, 
-1
+2
 , 2))
+))
 ;%0A  
@@ -861,11 +861,10 @@
   %09%7D%0A%09%7D%0A
-%0A
 %7D%0A

Fix SAG Mill compatibility