From f8f49bb0f9e5bc4462e8bc096cacbabaa121a584 Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Tue, 20 Jan 2026 15:30:22 +0100 Subject: [PATCH] reagent protection (#19069) * reagent protection * . --- code/modules/reagents/holder/holder.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/modules/reagents/holder/holder.dm b/code/modules/reagents/holder/holder.dm index 93e2859b067..c14d1d29f0b 100644 --- a/code/modules/reagents/holder/holder.dm +++ b/code/modules/reagents/holder/holder.dm @@ -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