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 contraband never getting added to vend inventory #32431

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

goet
Copy link
Contributor

@goet goet commented Sep 24, 2024

About the PR

Fixes #32421

Technical details

The old code updated the server component, but not the client component. To ensure the values stay synced, instead of setting the component directly in the action, the action now calls a setter on the system, similarly to how CanShoot is set.

Other actions were not affected by this bug probably because all of them are event based. Emagging is event based and runs through a completely different pipeline which updates both components. But building the vend inventory happens in the shared system, and uses the client side component for it, leading to this bug.

Media

vendfix.mp4

Requirements

Changelog

🆑

  • fix: Vending machines can be hacked again.

@goet goet marked this pull request as ready for review September 24, 2024 17:05
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.

Items hidden by hacking in vending machines are inaccessable.
1 participant