Skip to content

Update inventory_layout.simba#174

Merged
Torwent merged 1 commit into
WaspScripts:mainfrom
Rico-Rodriguez:patch-12
May 9, 2026
Merged

Update inventory_layout.simba#174
Torwent merged 1 commit into
WaspScripts:mainfrom
Rico-Rodriguez:patch-12

Conversation

@Rico-Rodriguez
Copy link
Copy Markdown
Contributor

The problem is that Reorder() searches slot j but accidentally re-reads slot i, so fix it by changing Inventory.Items.Discover(i) to Inventory.Items.Discover(j) inside the inner loop, optionally swapping the cached slots after a move.

Change Inventory.Items.Discover(i) to Inventory.Items.Discover(j) inside the inner j loop, and optionally swap the cached items[i]/items[j] after Inventory.Slots.Move(j, i) so the reorder cache stays accurate.
@Torwent Torwent merged commit 06fa92d into WaspScripts:main May 9, 2026
15 checks passed
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.

2 participants