Skip to content

Causes constant errors when using the fuel pump#4

Open
juzi5201314 wants to merge 2 commits intoVanilla-Expanded:mainfrom
juzi5201314:main
Open

Causes constant errors when using the fuel pump#4
juzi5201314 wants to merge 2 commits intoVanilla-Expanded:mainfrom
juzi5201314:main

Conversation

@juzi5201314
Copy link

In CompRefuelingPump.cs#L44, when compFuel.Fuel (i.e., the vehicle's fuel) reaches 0, Refuel(0) is called, but in CompFueledTravel.cs#L302, if amount is 0, an error will occur. Therefore, when I use the pump to refuel an empty vehicle, it will cause a continuous large number of error logs.
I don't know how you designed the refueling behavior, but it is clear that adding a minimum value such as 0.1 will avoid this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant