Modern Industrialization

Modern Industrialization

12M Downloads

EU is left in a hidden buffer when Diesel Generator runs out of fuel

James103 opened this issue ยท 1 comments

commented

To reproduce:

  1. Place an HV Storage Unit.
  2. Place an HV Diesel Generator next to the storage unit, such that the generator's output goes into one of the storage unit's input sides.
  3. Fuel the HV Diesel Generator with 1 bucket of Boosted Diesel.
  4. Wait about 80 seconds.
  5. Observe the EU stored in the HV Storage Unit is almost, but not quite 800,000 EU (799,744 EU to be exact).
  6. Observe the HV Diesel Generator having no EU stored and no fuel, thus making it look like EU was lost.
  7. Run /data get block ~ ~-1 ~ while standing on the diesel generator and notice the amount in the euBuffer field (256 to be exact). Adding this to the exact EU stored in the storage unit produces the full expected 800,000 EU.

NBT data at the end of reproduction steps (placer UUIDs redacted) from a Craftoria 1.23.0 instance:

9, 69, -12 has the following block data: {silenced: 0b, facingDirection: 2, placer: "", extractFluids: 0b, outputDirection: 3, x: 9, redstoneModuleStack: {}, y: 69, storedEu: 799744L, z: -12, id: "modern_industrialization:hv_storage_unit", extractItems: 0b}
9, 69, -13 has the following block data: {silenced: 0b, euBuffer: 256L, facingDirection: 2, outputDirection: 3, storedEu: 0L, extractItems: 0b, placer: "", extractFluids: 0b, x: 9, redstoneModuleStack: {}, y: 69, z: -13, id: "modern_industrialization:hv_diesel_generator", items: [], fluids: [{amount: 0L, machineLocked: 0b, playerLocked: 0b, playerExtract: 1b, pipesExtract: 0b, playerInsert: 1b, pipesInsert: 1b, key: {}, playerLockable: 1b, capacity: 64000L}]}

NBT data at the end of reproduction steps (placer UUIDs redacted) from a fresh instance with only MI:

552, 71, -120 has the following block data: {facingDirection: 2, placer: "", extractFluids: 0b, outputDirection: 3, x: 552, redstoneModuleStack: {}, y: 71, storedEu: 799744L, z: -120, id: "modern_industrialization:hv_storage_unit", extractItems: 0b}
552, 71, -121 has the following block data: {euBuffer: 256L, facingDirection: 2, outputDirection: 3, storedEu: 0L, extractItems: 0b, placer: "", extractFluids: 0b, x: 552, redstoneModuleStack: {}, y: 71, z: -121, id: "modern_industrialization:hv_diesel_generator", items: [], fluids: [{amount: 0L, machineLocked: 0b, playerLocked: 0b, playerExtract: 1b, pipesExtract: 0b, playerInsert: 1b, pipesInsert: 1b, key: {}, playerLockable: 1b, capacity: 64000L}]}

Tested with Modern Industrialization 2.3.10 in Minecraft 1.21.1. Modpack: Craftoria 1.23.0

commented

Nice report :D