edge case protection

This commit is contained in:
DeltaFire
2021-10-02 18:33:57 +02:00
parent 99a4af025b
commit 64367ff7ba
@@ -176,7 +176,7 @@
/datum/reagent/synthtissue/on_merge(passed_data)
if(!passed_data)
return ..()
borrowed_health += passed_data["borrowed_health"]
borrowed_health += max(0, passed_data["borrowed_health"])
if(passed_data["grown_volume"] > data["grown_volume"])
data["grown_volume"] = passed_data["grown_volume"]
if(iscarbon(holder.my_atom))