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

Fix: Bottle filling action updating all empty bottles #2817

Merged
merged 1 commit into from
May 4, 2023

Conversation

Archez
Copy link
Contributor

@Archez Archez commented May 2, 2023

After the GetItem hook rework, the early returns for bottle filling were removed accidentally. A previous bug in dev testing exposed one of these cases and a break was re-added back. The other case was still missing and causing it so when filling a bottle, all empty bottles were replaced, rather than just one bottle only.

This just adds back a break statement to replicate the early return from before the hook rework.

Original code change for reference:
image

Build Artifacts

@leggettc18
Copy link
Contributor

Just so I'm clear, is the "all bottles filling" situation currently an issue in dev-spock? Or was that dev-only and this is just adding the early return for correctness?

@Archez
Copy link
Contributor Author

Archez commented May 4, 2023

Just so I'm clear, is the "all bottles filling" situation currently an issue in dev-spock? Or was that dev-only and this is just adding the early return for correctness?

Bug in Spock.

@leggettc18
Copy link
Contributor

We talked about this in Discord, but just so that it's here for posterity, the glitch only happened with non-swinging bottle fillers, such as poes or buying potions from shops. And confirmed this fixes it.

@leggettc18 leggettc18 merged commit f9a696e into HarbourMasters:develop-spock May 4, 2023
7 checks passed
@Archez Archez deleted the fix-bottle-filling branch May 4, 2023 01:32
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.

None yet

3 participants