Fix gas tank and other hand-interaction bugs (#9700)

This commit is contained in:
Leon Friedrich
2022-07-31 14:56:26 +12:00
committed by GitHub
parent e227f208bc
commit bae540ab2f
6 changed files with 46 additions and 19 deletions

View File

@@ -12,6 +12,7 @@ using Content.Shared.Interaction.Events;
using Content.Shared.Body.Components;
using Content.Shared.Body.Part;
using Content.Shared.Popups;
using Content.Server.Hands.Systems;
namespace Content.Server.Kitchen.EntitySystems
{
@@ -19,6 +20,8 @@ namespace Content.Server.Kitchen.EntitySystems
internal sealed class MicrowaveSystem : EntitySystem
{
[Dependency] private readonly PopupSystem _popupSystem = default!;
[Dependency] private readonly HandsSystem _handsSystem = default!;
public override void Initialize()
{
base.Initialize();
@@ -114,8 +117,7 @@ namespace Content.Server.Kitchen.EntitySystems
}
args.Handled = true;
component.Storage.Insert(args.Used);
_handsSystem.TryDropIntoContainer(args.User, args.Used, component.Storage);
component.DirtyUi();
}