mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 20:12:19 +00:00
Fix checking for fuels
This commit is contained in:
1 parent
e251d28893
commit
00924ccd68
2 files changed
+8
-5
No files matched your search
@@ -201,9 +201,12 @@ public class EngineBronze extends Engine implements ISpecialInventory, ILiquidTa
|
||||
loss++;
|
||||
|
||||
// Lose extra heat when using water as fuel.
|
||||
EngineBronzeFuel fuel = FuelManager.bronzeEngineFuel.get(fuelTank.getFluid());
|
||||
if (fuel != null)
|
||||
loss = loss * fuel.dissipationMultiplier;
|
||||
if (fuelTank.getFluidAmount() > 0) {
|
||||
FluidStack fuelFluidStack = fuelTank.getFluid();
|
||||
EngineBronzeFuel fuel = FuelManager.bronzeEngineFuel.get(fuelFluidStack.getFluid());
|
||||
if (fuel != null)
|
||||
loss = loss * fuel.dissipationMultiplier;
|
||||
}
|
||||
|
||||
heat -= loss;
|
||||
return loss;
|
||||
|
||||
Reference in new issue
Block a user