From 3b9bd1188e932e6bb8041f7bb9afbf3ce75e26d3 Mon Sep 17 00:00:00 2001 From: Alexdoru <57050655+Alexdoru@users.noreply.github.com> Date: Wed, 2 Oct 2024 07:31:08 +0200 Subject: Cleanup the codebase (#3311) Co-authored-by: boubou19 --- src/main/java/bartworks/neiHandler/OreNEIHandler.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/main/java/bartworks/neiHandler') diff --git a/src/main/java/bartworks/neiHandler/OreNEIHandler.java b/src/main/java/bartworks/neiHandler/OreNEIHandler.java index 7b5e5eee40..3732c56aff 100644 --- a/src/main/java/bartworks/neiHandler/OreNEIHandler.java +++ b/src/main/java/bartworks/neiHandler/OreNEIHandler.java @@ -94,13 +94,10 @@ public class OreNEIHandler extends TemplateRecipeHandler { @Override public void drawExtras(int recipe) { - if (recipe < this.arecipes.size() && this.arecipes.get(recipe) instanceof CachedOreRecipe) { - CachedOreRecipe cachedOreRecipe = (CachedOreRecipe) this.arecipes.get(recipe); + if (recipe < this.arecipes.size() && this.arecipes.get(recipe) instanceof CachedOreRecipe cachedOreRecipe) { - if (cachedOreRecipe == null || cachedOreRecipe.getOtherStacks() == null - || cachedOreRecipe.getOtherStacks() - .size() == 0) - return; + if (cachedOreRecipe.getOtherStacks() == null || cachedOreRecipe.getOtherStacks() + .isEmpty()) return; if (!cachedOreRecipe.small) { if (cachedOreRecipe.getOtherStacks() -- cgit