Fix errors

This commit is contained in:
DrSmugleaf
2021-12-05 21:02:04 +01:00
parent 2a3b7d809d
commit ab9d0cc6d8
94 changed files with 568 additions and 591 deletions

View File

@@ -110,7 +110,7 @@ namespace Content.Server.PDA
UpdatePDAUserInterface(pda);
}
private bool OpenUI(PDAComponent pda, EntityUiduser)
private bool OpenUI(PDAComponent pda, EntityUid user)
{
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(user, out ActorComponent? actor))
return false;
@@ -145,7 +145,7 @@ namespace Content.Server.PDA
private void OnUIMessage(PDAComponent pda, ServerBoundUserInterfaceMessage msg)
{
// cast EntityUid? to EntityUid
if (msg.Session.AttachedEntity is not EntityUid playerUid)
if (msg.Session.AttachedEntity is not { } playerUid)
return;
switch (msg.Message)