You can no longer spill closed solution containers (#10259)
This commit is contained in:
@@ -4,6 +4,8 @@ using Content.Server.Administration.Logs;
|
||||
using Content.Server.Chemistry.EntitySystems;
|
||||
using Content.Server.Clothing.Components;
|
||||
using Content.Server.Fluids.Components;
|
||||
using Content.Server.Nutrition.Components;
|
||||
using Content.Server.Nutrition.EntitySystems;
|
||||
using Content.Shared.Chemistry.Components;
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Shared.Database;
|
||||
@@ -111,6 +113,9 @@ public sealed class SpillableSystem : EntitySystem
|
||||
if (!_solutionContainerSystem.TryGetDrainableSolution(args.Target, out var solution))
|
||||
return;
|
||||
|
||||
if (TryComp<DrinkComponent>(args.Target, out var drink) && (!drink.Opened))
|
||||
return;
|
||||
|
||||
if (solution.DrainAvailable == FixedPoint2.Zero)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user