Inline Transform
This commit is contained in:
@@ -125,7 +125,7 @@ namespace Content.Server.Light.EntitySystems
|
||||
// found right bulb, let's spawn it
|
||||
if (bulbEnt != null)
|
||||
{
|
||||
bulb = EntityManager.SpawnEntity(bulbEnt.PrototypeName, replacer.Owner.Transform.Coordinates);
|
||||
bulb = EntityManager.SpawnEntity(bulbEnt.PrototypeName, IoCManager.Resolve<IEntityManager>().GetComponent<TransformComponent>(replacer.Owner.Uid).Coordinates);
|
||||
bulbEnt.Amount--;
|
||||
}
|
||||
// not found any light bulbs
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Content.Server.Light.EntitySystems
|
||||
if (match.CurrentState != SmokableState.Lit)
|
||||
continue;
|
||||
|
||||
_atmosphereSystem.HotspotExpose(match.Owner.Transform.Coordinates, 400, 50, true);
|
||||
_atmosphereSystem.HotspotExpose(IoCManager.Resolve<IEntityManager>().GetComponent<TransformComponent>(match.Owner.Uid).Coordinates, 400, 50, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace Content.Server.Light.EntitySystems
|
||||
_ => throw new ArgumentOutOfRangeException()
|
||||
};
|
||||
|
||||
var entity = EntityManager.SpawnEntity(prototype, light.Owner.Transform.Coordinates);
|
||||
var entity = EntityManager.SpawnEntity(prototype, IoCManager.Resolve<IEntityManager>().GetComponent<TransformComponent>(light.Owner.Uid).Coordinates);
|
||||
light.LightBulbContainer.Insert(entity);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user