Inline EntityManager
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Content.Server.Actions.Actions
|
||||
foreach (var ent in ents)
|
||||
{
|
||||
var ghostBoo = new GhostBooEvent();
|
||||
ent.EntityManager.EventBus.RaiseLocalEvent(ent.Uid, ghostBoo);
|
||||
IoCManager.Resolve<IEntityManager>().EventBus.RaiseLocalEvent(ent.Uid, ghostBoo);
|
||||
|
||||
if (ghostBoo.Handled)
|
||||
booCounter++;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace Content.Server.Actions.Spells
|
||||
}
|
||||
|
||||
// TODO: Look this is shitty and ideally a test would do it
|
||||
var spawnedProto = caster.EntityManager.SpawnEntity(ItemProto, caster.Transform.MapPosition);
|
||||
var spawnedProto = IoCManager.Resolve<IEntityManager>().SpawnEntity(ItemProto, caster.Transform.MapPosition);
|
||||
|
||||
if (!spawnedProto.TryGetComponent(out ItemComponent? itemComponent))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user