Refined Storage

Refined Storage

115M Downloads

Portable Grid loses all energy when swapping disks

Closed this issue ยท 4 comments

commented

Describe the bug

When a disk is put in or taken out of a portable grid while the player is holding it, all the energy is drained. When done in the placed state, the energy stays.

How can we reproduce this bug or crash?

Take portable grid
Charge it from a placed down battery, not through inventory charging
Open it in the air
Put in a disk
Close and reopen
Energy is drained

What Minecraft version is this happening on?

Minecraft 1.21.1

What NeoForge or Fabric version is this happening on?

21.1.142

What Refined Storage version is this happening on?

Beta 2

Relevant log output

commented

Does #1058 fix this issue? @lucasser

commented

Yes, that should be for this issue.

commented

Just making sure, this doesn't conflict with #916 ?

I thought we checked if everything was working correctly.

commented

I'm pretty sure it doesn't. This fix was for the block writing the tag double when you pick it up from what I remember, while the other is when you put a disk in, the grid data gets rewritten, but the energy isn't accounted for.