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 dupe bug with breaking of compacting drawer #24

Merged
merged 2 commits into from
Dec 13, 2023

Conversation

OneEyeMaker
Copy link

@OneEyeMaker OneEyeMaker commented Dec 13, 2023

Compacting drawer is implemented so that all items it displays are not just visuals - ones are virtually stored.
For example, when you put stack of gold inside compacting drawer, it creates 7 blocks of gold and 9 stacks of golden nuggets. And when broken such drawer drops all its contents which leads to dupe.

This PR fixes this issue by clearing slot contents of drawer after dropping items it world (which results in recalculation of amount of real items stored).
Supersedes #23

Testing is required (especially for regular drawers, because this PR changes logic of breaking of all drawers)

@OneEyeMaker OneEyeMaker requested a review from a team December 13, 2023 08:44
@DrParadox7 DrParadox7 mentioned this pull request Dec 13, 2023
@Dream-Master Dream-Master merged commit 1fc1be6 into master Dec 13, 2023
1 check passed
@Dream-Master Dream-Master deleted the fix/compact-drawer-dupe branch December 13, 2023 14:33
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