Fixes a server crashing bug with reagents. (#18590)

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2024-03-03 19:53:32 +00:00
committed by GitHub
co-authored by Matt Atlas
parent bf204dac97
commit ab3acb1b9c
2 changed files with 42 additions and 1 deletions
+1 -1
View File
@@ -55,7 +55,7 @@
if(!primary_reagent || reagent_volumes[primary_reagent] < vol)
primary_reagent = R
if(total_volume > maximum_volume)
remove_any(maximum_volume - total_volume)
remove_any(total_volume - maximum_volume)
return max(total_volume,0)
/datum/reagents/proc/update_holder(var/reactions = TRUE)