Updated TileGrinderWheel to new recipe functions
This commit is contained in:
parent
da01b0f37e
commit
b9eba8778d
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue