Skip to content

Update inventory_layout.simba#174

Open
Rico-Rodriguez wants to merge 1 commit intoWaspScripts:mainfrom
Rico-Rodriguez:patch-12
Open

Update inventory_layout.simba#174
Rico-Rodriguez wants to merge 1 commit intoWaspScripts: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.
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