Skip to content

Sorting backpacks with a lot of stuff in them can dupe and remove items #631

Description

@evsey9

Describe the bug
When sorting a backpack with many items in it, something may cause the sort to work only partially and also remove/dupe items at the same time.

To Reproduce
Steps to reproduce the behavior:

  1. Spend a lot of time getting stuff in your backpack through the pickup upgrade
  2. Press the sort button in the backpack, several times
  3. Watch as half your backpack is duped and half the backpack is overwritten with whatever was duped?
  4. Cry a lot

Expected behavior
Sorting should NOT have a chance to just wipe half the backpack's contents.

Screenshots

2022-10-26_20-55-38.mp4

Relevant logs: https://pastebin.com/MrA5Z6Hz
I thankfully disabled autosave and made a server backup right before doing this as you can see right at the beginning of the logs, because I had a hunch this bug would happen again. I was right.
I have a world backup of before and after this bug happened, I can upload both if you need to check the world.

Versions
Mod version that you're using. Version of forge may also be helpful in some cases
SophisticatedCore 1.18.2 0.5.13.132
SophisticatedBackpacks 1.18.2 3.18.29.718
Forge 40.1.80
Modpack is AllTheMods7 0.4.34

This may be an issue with SophisticatedCore and not SophisticatedBackpacks, but I wouldn't know as I haven't used the chests too much to know if this issue affects them too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions