Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -126,7 +126,7 @@ public sealed class GhostRoleSystem : EntitySystem
|
||||
public void OpenEui(ICommonSession session)
|
||||
{
|
||||
if (session.AttachedEntity is not { Valid: true } attached ||
|
||||
!EntityManager.HasComponent<GhostComponent>(attached))
|
||||
!HasComp<GhostComponent>(attached))
|
||||
return;
|
||||
|
||||
if (_openUis.ContainsKey(session))
|
||||
@@ -511,7 +511,7 @@ public sealed class GhostRoleSystem : EntitySystem
|
||||
DebugTools.AssertNotNull(player.ContentData());
|
||||
|
||||
var newMind = _mindSystem.CreateMind(player.UserId,
|
||||
EntityManager.GetComponent<MetaDataComponent>(mob).EntityName);
|
||||
Comp<MetaDataComponent>(mob).EntityName);
|
||||
|
||||
_mindSystem.SetUserId(newMind, player.UserId);
|
||||
_mindSystem.TransferTo(newMind, mob);
|
||||
|
||||
Reference in New Issue
Block a user