mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
[NO GBP] Apply multiplier correctly when transferring reagents. (#79084)
## About The Pull Request - Fixes #79083 The multiplier should be applied per reagent volume & not on the requested amount as a whole. ## Changelog 🆑 fix: cryo and stuff that transfers reagents with a multiplier should transfer correct volumes as expected. /🆑
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
//compute how much more is needed and round it
|
||||
diff = chamber.required_reagents[required_reagent] - present_amount
|
||||
if(diff >= CHEMICAL_QUANTISATION_LEVEL * 10) //should be safe even after rounding
|
||||
if(diff >= 0.01)
|
||||
process_request(min(diff, MACHINE_REAGENT_TRANSFER), required_reagent, dir)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user