From b9eba8778d754a1c12d36de6fd6cb1e2efc98dda Mon Sep 17 00:00:00 2001 From: Calclavia Date: Sun, 5 Jan 2014 16:00:36 +0800 Subject: [PATCH] Updated TileGrinderWheel to new recipe functions --- .../resonantinduction/machine/grinder/TileGrinderWheel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/resonantinduction/machine/grinder/TileGrinderWheel.java b/src/main/java/resonantinduction/machine/grinder/TileGrinderWheel.java index 753021025..c073f0631 100644 --- a/src/main/java/resonantinduction/machine/grinder/TileGrinderWheel.java +++ b/src/main/java/resonantinduction/machine/grinder/TileGrinderWheel.java @@ -60,14 +60,14 @@ public class TileGrinderWheel extends TileElectrical public boolean canGrind(ItemStack itemStack) { - return MachineRecipes.INSTANCE.getRecipes(RecipeType.GRINDER).containsKey(itemStack); + return MachineRecipes.INSTANCE.getRecipe(RecipeType.GRINDER, itemStack).length > 0; } private void doGrind(EntityItem entity) { ItemStack itemStack = entity.getEntityItem(); - List results = MachineRecipes.INSTANCE.getRecipes(RecipeType.GRINDER).get(itemStack); + Resource[] results = MachineRecipes.INSTANCE.getRecipe(RecipeType.GRINDER, itemStack); for (Resource resource : results) {