Skip to content

Commit

Permalink
fix crash in AlloyMix.java (#141)
Browse files Browse the repository at this point in the history
(cherry picked from commit 79228c1)
  • Loading branch information
iamcsharper authored and Dream-Master committed Dec 28, 2024
1 parent a3dae07 commit c72e172
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/tconstruct/library/crafting/AlloyMix.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@ public FluidStack mix(List<FluidStack> liquids) {
ArrayList<Integer> 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;
Expand Down

0 comments on commit c72e172

Please sign in to comment.