Skip to content

Commit

Permalink
optimization or something
Browse files Browse the repository at this point in the history
  • Loading branch information
MilonPL committed Jan 7, 2025
1 parent fa7b89b commit 7de6858
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Content.Server/Access/Systems/AgentIDCardSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,7 @@ private void AfterUIOpen(EntityUid uid, AgentIDCardComponent component, AfterAct
return;

// Emberfall - Get current number if it exists
uint? currentNumber = null;
if (TryComp<NanoChatCardComponent>(uid, out var comp))
currentNumber = comp.Number;

var number = Comp<NanoChatCardComponent>(uid).Number;
var currentNumber = Comp<NanoChatCardComponent>(uid).Number;

var state = new AgentIDCardBoundUserInterfaceState(
idCard.FullName ?? "",
Expand Down

0 comments on commit 7de6858

Please sign in to comment.