Buffer fix

This commit is contained in:
Fermi
2019-10-04 03:22:53 +01:00
parent 0301683ae1
commit 10f5fc3b47
3 changed files with 13 additions and 7 deletions
@@ -746,10 +746,14 @@
total_volume = 0
for(var/reagent in cached_reagents)
var/datum/reagent/R = reagent
if(R.volume == 0)
del_reagent(R.id)
if((R.volume < 0.01) && !fermiIsReacting)
del_reagent(R.id)
else
total_volume += R.volume
if(!reagent_list)
pH = 7
return 0
/datum/reagents/proc/clear_reagents()