mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-21 06:25:59 +00:00
* Fixes duplicating space beer (#80500) ## About The Pull Request Fixes https://github.com/Skyrat-SS13/Skyrat-tg/issues/25760 Fixes https://github.com/tgstation/tgstation/issues/80271 I don't know if it was a result of the react port or not (likely it was), but unexpected behavior occurs when multiple objects are mapped to the same key. In this case, there were two items named 'Space Beer', so in order to have unique keys I've changed it so that they're keyed to the path instead of the name. Shown below, the two types of beer:  <details><summary>Beer duplicating when switching tabs</summary>  </details> <details><summary>No more of that</summary>  </details> edit: also fixes a bug where buying an item with the same name as another would decrement the stock of both items. <details><summary>Fixed (see space beer)</summary>  </details> ## Why It's Good For The Game Fixes a bug ## Changelog 🆑 fix: the boozeomat ui will stop duplicating space beer bottles refactor: refactored vending machine backend to have unique keys for their data structures. should fix bugs related to items that happen to have the same name. /🆑 * Fixes duplicating space beer * Fixing this mistake from a previous pr * Update lustwish.dm --------- Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>