Skip to content

Fix Ctrl+click crash in backpack inventory (1.9.2) - #2

Open
Baldrvolsk wants to merge 1 commit into
Zaedin:masterfrom
Baldrvolsk:fix/ctrl-click-backpack-slot-crash
Open

Fix Ctrl+click crash in backpack inventory (1.9.2)#2
Baldrvolsk wants to merge 1 commit into
Zaedin:masterfrom
Baldrvolsk:fix/ctrl-click-backpack-slot-crash

Conversation

@Baldrvolsk

Copy link
Copy Markdown

Summary

  • Fix client crash Supplied slot is not part of this inventory (backpack-…) when using Ctrl+click bulk transfer (StrgClick) while the backpack inventory rebuilds mid-loop.
  • Snapshot matching slots before transferring, skip backpack bag-equipment slots 0..3, validate live slots, and abort safely on ArgumentException.
  • Bump version to 1.9.2.

Test plan

  • Ctrl+click matching stacks in backpack content slots → all matching content stacks transfer; no crash
  • Ctrl+click on backpack bag-equipment slots (0..3) → falls back to vanilla; no crash
  • Ctrl+click matching stacks in a chest / crate → behavior unchanged from 1.9.1
  • Shift+click still uses vanilla path
  • With FendragonBCS large backpacks: Ctrl+click content stacks does not crash

Snapshot matching slots before transferring, skip backpack bag-equipment slots, and abort safely if the inventory is rebuilt mid-move. Bump to 1.9.2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant