Jump to content

Petrol generator insufficient resources when mixing fuel


Radam
  • Branch: Preview Branch Version: Windows Pending

Petrol generator doesnt work when it has 100g of ethanol and 19kg of petrol.

20190714181620_1.jpg


Steps to Reproduce
While i had too little ethanol, i tried piping in petrol to compensate. It stopped the generator.
  • Like 3



User Feedback


EnergyGenerator is consistently assuming just one fuel and finds it with this.storage.FindFirst(inputItem.tag);

This happens both in IsConvertible (the cause of this bug... I think) and in EnergySim200ms, where the meter display assumes only one element when counting (display bug only).

EnergySim200ms removes fuel from storage by calling this.storage.ConsumeIgnoringDisease, which I think is ok. It looks like it loops through the list until it consumed enough mass. It's just not called if IsConvertible says "not enough fuel".

I better keep an eye on this one. I have a mod with a modded version of EnergyGenerator (hence my interest) and I must have copy pasted this bug.

  • Like 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...