Some general cleanup

This commit is contained in:
modmuss50 2020-07-26 16:19:33 +01:00
parent bbc9dd3b37
commit b5707b144e
20 changed files with 29 additions and 59 deletions
src/main/java/techreborn/api/generator

View file

@ -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);
}
}