diff --git a/src/main/java/tconstruct/library/crafting/AlloyMix.java b/src/main/java/tconstruct/library/crafting/AlloyMix.java index 2bcb2d5cf9..542ba0466c 100644 --- a/src/main/java/tconstruct/library/crafting/AlloyMix.java +++ b/src/main/java/tconstruct/library/crafting/AlloyMix.java @@ -24,7 +24,15 @@ public FluidStack mix(List liquids) { ArrayList effectiveAmount = new ArrayList<>(); for (FluidStack liquid : liquids) { + if (liquid == null) { + continue; // Skip this iteration if liquid is null + } + for (FluidStack mixer : copyMix) { + // Check if the mixer is null + if (mixer == null) { + continue; // Skip this iteration if mixer is null + } if (mixer.isFluidEqual(liquid)) { // do we actually have enough of that liquid? if (liquid.amount < mixer.amount) break;