mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-12 02:32:10 +00:00
## About The Pull Request 1. Removes **2 WHOLE** `update_total()` calls from `trans_to()`. This is the hottest proc in plumbing & in a large majority of other reagent operations so it's a big win. `add_reagent()` & `remove_reagent()` already calls `update_total()` for us so we don't need them. Its free performance!! 2. `remove_reagent()` only calls `update_total()` & `handle_reactions()` once when removing subtypes of a reagent compared to repeatedly calling these hot procs every iteration ## Changelog 🆑 code: Improves cpu performance of transferring & removing reagents /🆑