Inline RemoveComponent

This commit is contained in:
Vera Aguilera Puerto
2021-12-03 11:34:00 +01:00
parent f64df117be
commit e0fe09cb46
11 changed files with 14 additions and 11 deletions

View File

@@ -3,6 +3,7 @@ using Content.Shared.Tabletop.Events;
using Robust.Server.GameObjects;
using Robust.Server.Player;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Log;
using Robust.Shared.Maths;
@@ -116,7 +117,7 @@ namespace Content.Server.Tabletop
gamer.Tabletop = EntityUid.Invalid;
// You stop being a gamer.......
attachedEntity.RemoveComponent<TabletopGamerComponent>();
IoCManager.Resolve<IEntityManager>().RemoveComponent<TabletopGamerComponent>(attachedEntity.Uid);
}
session.Players.Remove(player);