Updated TileGrinderWheel to new recipe functions

This commit is contained in:
Calclavia 2014-01-05 16:00:36 +08:00
parent da01b0f37e
commit b9eba8778d

View file

@ -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<Resource> results = MachineRecipes.INSTANCE.getRecipes(RecipeType.GRINDER).get(itemStack);
Resource[] results = MachineRecipes.INSTANCE.getRecipe(RecipeType.GRINDER, itemStack);
for (Resource resource : results)
{