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,

View File

@@ -34,6 +34,8 @@
- type: DrinkCanVisualizer
stateClosed: icon
stateOpen: icon_open
- type: Spillable
solution: drink
- type: ItemCooldown
- type: Recyclable
- type: SpaceGarbage

View File

@@ -18,6 +18,8 @@
solution: drink
- type: SolutionTransfer
canChangeTransferAmount: true
- type: Spillable
solution: drink
- type: Sprite
sprite: Objects/Consumable/Drinks/shaker.rsi
state: icon