Fixed incubator recipes

This commit is contained in:
marcin212 committed 2017-06-05 21:56:47 +02:00
1 parent dc2c63c856
commit 6907f4159e
1 file changed
+2 -1
@@ -9,6 +9,7 @@ import binnie.genetics.Genetics;
import binnie.genetics.api.IIncubatorRecipe;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.oredict.OreDictionary;
import javax.annotation.Nullable;
import java.util.Random;
@@ -27,7 +28,7 @@ public class IncubatorLogic extends ComponentProcessIndefinate implements IProce
}
private static boolean isStackValid(ItemStack stack, IIncubatorRecipe recipe) {
return ItemStack.areItemsEqual(recipe.getInputStack(), stack);
return OreDictionary.itemMatches(recipe.getInputStack(),stack,false);
}
@Override