edit comment

This commit is contained in:
Belaya
2025-07-31 18:34:30 -05:00
parent 0caef258d6
commit eba2dfdd88
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -66,7 +66,7 @@
var/datum/component/plumbing/supplier = A
if(supplier.can_give(amount, reagent, net))
valid_suppliers += supplier
// Need to ask for each in turn very carefully, making sure we get the total volume. This is to avoid a division that would always round down and become 0
///GS13 Edit: Need to ask for each in turn very carefully, making sure we get the total volume. This is to avoid a division that would always round down and become 0
var/targetVolume = reagents.total_volume = amount
var/suppliersLeft = valid_suppliers.len
for(var/A in valid_suppliers)
@@ -23,7 +23,7 @@
var/datum/reagent/RD = A
if(RT == RD.type)
has_reagent = TRUE
if(RD.volume + CHEMICAL_QUANTISATION_LEVEL < RC.required_reagents[RT]) // Allow the chamber to exit filling mode when it feels it has enough even if short by a tiny fraction
if(RD.volume + CHEMICAL_QUANTISATION_LEVEL < RC.required_reagents[RT]) //GS13 Edit: Allow the chamber to exit filling mode when it feels it has enough even if short by a tiny fraction
process_request(min(RC.required_reagents[RT] - RD.volume, MACHINE_REAGENT_TRANSFER) , RT, dir)
return
if(!has_reagent)