Clean up all missing EntitySystem proxy method uses (#38353)

This commit is contained in:
Tayrtahn
2025-06-26 19:50:49 -04:00
committed by GitHub
parent 73df3b1593
commit 75db49f9c0
185 changed files with 418 additions and 418 deletions

View File

@@ -80,7 +80,7 @@ namespace Content.Server.Tabletop
if (!_cfg.GetCVar(CCVars.GameTabletopPlace))
return;
if (!EntityManager.TryGetComponent(args.User, out HandsComponent? hands))
if (!TryComp(args.User, out HandsComponent? hands))
return;
if (component.Session is not { } session)
@@ -128,7 +128,7 @@ namespace Content.Server.Tabletop
if (!args.CanAccess || !args.CanInteract)
return;
if (!EntityManager.TryGetComponent(args.User, out ActorComponent? actor))
if (!TryComp(args.User, out ActorComponent? actor))
return;
var playVerb = new ActivationVerb()
@@ -147,7 +147,7 @@ namespace Content.Server.Tabletop
return;
// Check that a player is attached to the entity.
if (!EntityManager.TryGetComponent(args.User, out ActorComponent? actor))
if (!TryComp(args.User, out ActorComponent? actor))
return;
OpenSessionFor(actor.PlayerSession, uid);
@@ -171,7 +171,7 @@ namespace Content.Server.Tabletop
private void OnGamerShutdown(EntityUid uid, TabletopGamerComponent component, ComponentShutdown args)
{
if (!EntityManager.TryGetComponent(uid, out ActorComponent? actor))
if (!TryComp(uid, out ActorComponent? actor))
return;
if(component.Tabletop.IsValid())
@@ -190,7 +190,7 @@ namespace Content.Server.Tabletop
if (!TryComp(uid, out ActorComponent? actor))
{
EntityManager.RemoveComponent<TabletopGamerComponent>(uid);
RemComp<TabletopGamerComponent>(uid);
return;
}