reagent protection (#19069)

* reagent protection

* .
This commit is contained in:
Kashargul
2026-01-20 15:30:22 +01:00
committed by GitHub
parent 788ab3a5c7
commit f8f49bb0f9
+4 -1
View File
@@ -254,7 +254,10 @@
if(!target || !istype(target))
return
amount = max(0, min(amount, total_volume, target.get_free_space() / multiplier))
if(multiplier)
amount = max(0, min(amount, total_volume, target.get_free_space() / multiplier))
else
amount = max(0, min(amount, total_volume))
if(!amount)
return