Some general cleanup
This commit is contained in:
parent
bbc9dd3b37
commit
b5707b144e
20 changed files with 29 additions and 59 deletions
src/main/java/techreborn/api/generator
|
@ -74,8 +74,6 @@ public class GeneratorRecipeHelper {
|
|||
public static void removeFluidRecipe(EFluidGenerator generatorType, Fluid fluidType) {
|
||||
FluidGeneratorRecipeList recipeList = getFluidRecipesForGenerator(generatorType);
|
||||
Optional<FluidGeneratorRecipe> recipe = recipeList.getRecipeForFluid(fluidType);
|
||||
if (recipe.isPresent()) {
|
||||
recipeList.removeRecipe(recipe.get());
|
||||
}
|
||||
recipe.ifPresent(recipeList::removeRecipe);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue