
Diesel Generator can consume up to 8 times its fuel requirement
dthomas1202 opened this issue ยท 0 comments
Minecraft Version
1.21.1
Immersive Engineering Version
12.1.0-185
Expected Behavior
With a single refinery supplying a single generator with a full electrical load, the refinery's production of biodiesel should outpace the generator by 4x, filling up the fluid buffer in both the generator and refinery.
So, the generator should consume the expected amount of fuel once every 10-ticks (40mB every 10 ticks with biodiesel).
Actual Behavior
Even though the refinery outpaces the generator, there is not an excess of biodiesel that fills the fluid buffers.
With a single refinery and generator, the generator will consume as much fuel as it can every tick, so long as its fluid buffer is less than 40mB.
So, with a single refinery, producing 16mB/tick of biodiesel, the generator will consume the 16mB in one tick, emptying its fluid buffer, but only run for that tick, consuming another 16mB in the next tick. (This also occurs with 2 refinery's at 32mB/tick)
If the generators internal fluid buffer contains less than 10000/burnTime of fuel (40mB in the case of biodiesel) then regardless of the amount burned, it only runs for 1-tick, and will try to consume more fuel in the following tick.
Steps to reproduce
- Setup a refinery and disable it with a redstone signal.
- Setup a generator, ensuring that there is no biodiesel in the generators buffer, and the generator has never ran.
- Fully load the generators electrical output (with creative accumulators set to input, excavator, etc.).
- Fill the refinery with plant oil and ethanol, then enable the refinery.
- Observe the generators fluid buffer, it will not fill up, but the refinery is producing more than the generator should need.
Notes:
- If the generator has ran before with more than 40mB of biodiesel, there only seems to be a partial chance of this issue occurring.
- This was first noticed on a dedicated server, but reproduced in a singleplayer world.
Debug Crash Log
https://gist.github.com/dthomas1202/37e85ef85391ee366b1536ed04914bb7