Fix verb sub (#30667)

* Fix verb sub

Mapping casualty, verbs are weird.

* also this
This commit is contained in:
metalgearsloth
2024-08-05 19:24:56 +10:00
committed by GitHub
parent c1eb319bda
commit f7d8b4e7d4
2 changed files with 5 additions and 3 deletions

View File

@@ -47,6 +47,7 @@ namespace Content.Client.Verbs.UI
{ {
_context.OnContextKeyEvent += OnKeyBindDown; _context.OnContextKeyEvent += OnKeyBindDown;
_context.OnContextClosed += Close; _context.OnContextClosed += Close;
_verbSystem.OnVerbsResponse += HandleVerbsResponse;
} }
public void OnStateExited(GameplayState state) public void OnStateExited(GameplayState state)

View File

@@ -7,6 +7,7 @@ using Content.Server.Traitor.Components;
using Robust.Shared.Random; using Robust.Shared.Random;
using Robust.Shared.Utility; using Robust.Shared.Utility;
using System.Linq; using System.Linq;
using Content.Shared.Paper;
namespace Content.Server.Traitor.Systems; namespace Content.Server.Traitor.Systems;
@@ -33,11 +34,11 @@ public sealed class TraitorCodePaperSystem : EntitySystem
if (!Resolve(uid, ref component)) if (!Resolve(uid, ref component))
return; return;
if (HasComp<PaperComponent>(uid)) if (TryComp(uid, out PaperComponent? paperComp))
{ {
if (TryGetTraitorCode(out var paperContent, component)) if (TryGetTraitorCode(out var paperContent, component))
{ {
_paper.SetContent(uid, paperContent); _paper.SetContent((uid, paperComp), paperContent);
} }
} }
} }