Fix cans that cant be spilled (#10529)
This commit is contained in:
parent
0c2d1b79c0
commit
7deb22e163
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@
|
|||
- type: DrinkCanVisualizer
|
||||
stateClosed: icon
|
||||
stateOpen: icon_open
|
||||
- type: Spillable
|
||||
solution: drink
|
||||
- type: ItemCooldown
|
||||
- type: Recyclable
|
||||
- type: SpaceGarbage
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@
|
|||
solution: drink
|
||||
- type: SolutionTransfer
|
||||
canChangeTransferAmount: true
|
||||
- type: Spillable
|
||||
solution: drink
|
||||
- type: Sprite
|
||||
sprite: Objects/Consumable/Drinks/shaker.rsi
|
||||
state: icon
|
||||
|
|
|
|||
Loading…
Reference in New Issue