Stops the Low energy status showing when there is enough energy.#136
Stops the Low energy status showing when there is enough energy.#136
Conversation
|
I like the fact that it updates once per second to avoid flickering, but your implementation makes it a coin flip. If you have a machine running 30eu/t and supplied with exactly 15eu/t, it may say there are no issues whatsoever depending on which side of the coin you are. Interestingly enough, I like the fact that my machines warn me about low power even after it's resolved. It gives me an indication something went wrong at some point. |
|
As Syrcan indicated, this can still easily cause a flickering indicator. I think this may need to be done with some sort of EU per second tracking, so that we can determine if the average across some length of time is too low instead of using an instantaneous value |
What:
Stops the Low energy status showing when there is enough energy
How solved:
When there is enough energy for a recipe reset the variable. The function used to get the energy status in UI only updates its return value to prevent flickering.
Outcome:
Stops the Low energy status showing when there is enough energy.