Skip to content

Commit

Permalink
Use firstOrEmpty in FuelModule#tryLiquidFuel
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaMode committed Nov 17, 2023
1 parent 68aca84 commit e246206
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private NonNullFunction<Storage<ItemVariant>,Integer> trySolidFuel(boolean consu
* @return Temperature of the consumed fuel, 0 if none found
*/
private int tryLiquidFuel(Storage<FluidVariant> handler, boolean consume) {
FluidStack fluid = TransferUtil.getFirstFluid(handler);
FluidStack fluid = TransferUtil.firstOrEmpty(handler);
MeltingFuel recipe = findRecipe(fluid.getFluid());
if (recipe != null) {
long amount = recipe.getAmount(fluid.getFluid());
Expand Down

0 comments on commit e246206

Please sign in to comment.