Fix cans that cant be spilled (#10529)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user