Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed item stack copy #484

Merged
merged 3 commits into from
Jun 13, 2024
Merged

Conversation

hannibal002
Copy link
Contributor

Fixed calling ItemStack.copy() too often unnecessary.

In MiningFeatures.onDrawSlot we are calling val item = event.slot.stack, even outside the HOTM inventories. This causes the injected MixinSlot to call markTerminalItems. In here, we create a copy of the item stack before checking if the slot number is part of SelectAllColorSolver or StartsWithSequenceSolver.

@hannibal002 hannibal002 requested a review from Sychic May 20, 2024 09:53
@My-Name-Is-Jeff My-Name-Is-Jeff merged commit 7d8e061 into Skytils:1.x Jun 13, 2024
1 check passed
My-Name-Is-Jeff pushed a commit that referenced this pull request Jun 13, 2024
* fixed too many item copy calls

* removed comment

* inline item

---------

Co-authored-by: hannibal2 <[email protected]>
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.

3 participants