From 6edd731833c1040d9f2aeb8cfb726da15450d565 Mon Sep 17 00:00:00 2001 From: LightVillet Date: Sun, 13 Aug 2023 10:08:54 +0300 Subject: [PATCH] Fixing spilling empty containers (#19048) Co-authored-by: LightVillet --- Content.Server/Fluids/EntitySystems/PuddleSystem.Spillable.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Content.Server/Fluids/EntitySystems/PuddleSystem.Spillable.cs b/Content.Server/Fluids/EntitySystems/PuddleSystem.Spillable.cs index ecdb899f9f..94283bd745 100644 --- a/Content.Server/Fluids/EntitySystems/PuddleSystem.Spillable.cs +++ b/Content.Server/Fluids/EntitySystems/PuddleSystem.Spillable.cs @@ -77,6 +77,9 @@ public sealed partial class PuddleSystem // spilling like 100u of reagent on someone at once! totalSplit = FixedPoint2.Min(totalSplit, component.MaxMeleeSpillAmount); + if (totalSplit == 0) + return; + foreach (var hit in args.HitEntities) { if (!HasComp(hit))