Fix cans that cant be spilled (#10529)

This commit is contained in:
corentt
2022-08-14 07:19:45 +02:00
committed by GitHub
parent 0c2d1b79c0
commit 7deb22e163
3 changed files with 7 additions and 0 deletions

View File

@@ -95,6 +95,9 @@ public sealed class SpillableSystem : EntitySystem
{
if (!_solutionContainerSystem.TryGetSolution(uid, component.SolutionName, out var solution)) return;
if (TryComp<DrinkComponent>(uid, out var drink) && (!drink.Opened))
return;
if (args.User != null)
{
_adminLogger.Add(LogType.Landed,