Added nullcheck

This commit is contained in:
Runakai1 committed 2022-08-14 11:12:13 +02:00
1 parent 539538d551
commit 3f15f9524b
1 file changed
+1 -1
@@ -41,7 +41,7 @@ public final class FluidRecipe {
List<OrderStack<?>> reordered = new ArrayList<>();
byte numFluids = 0;
for (OrderStack<?> orderStack : out) {
if (orderStack.getStack() instanceof FluidStack) {
if (orderStack != null && orderStack.getStack() instanceof FluidStack) {
reordered.add(new OrderStack(orderStack.getStack(), numFluids++));
}
}