Refined Storage

Refined Storage

115M Downloads

Items with nbt data are not shown correctly after reload

bulldog98 opened this issue ยท 2 comments

commented

Describe the bug

If you put an item with nbt data (e.g. an Enchanted Book with Frost Walker) into the System (into a disk). After saving and loading the world the system will show a wrong number of items for that item.

How can we reproduce this bug or crash?

  1. Start the game, and put an Enchanted Book (Frost Walker II) onto a disk
  2. Save the game
  3. Load the game
  4. Look into the system and observe it claiming 8 Enchanted Books (only one is in there)

What Minecraft version is this happening on?

Minecraft 1.19.2

What Forge or Fabric version is this happening on?

on fabric and forge (in dev mode)

What Refined Storage version is this happening on?

current dev

Relevant log output

No response

commented

After a bit of debugging it looks like the problem is how data stored on disks is loaded, if multiple disks are in the same drive (this somehow makes CompositeStorageImpl to think the item is on each disk, which is the reason why it does not happen when you put the item in.

commented

Was not really an issue, but multiple disks with same uuid.