Remove 700 usages of Component.Owner (#21100)
This commit is contained in:
@@ -36,7 +36,10 @@ public sealed class PyroclasticAnomalySystem : EntitySystem
|
||||
|
||||
public void IgniteNearby(EntityUid uid, EntityCoordinates coordinates, float severity, float radius)
|
||||
{
|
||||
foreach (var flammable in _lookup.GetComponentsInRange<FlammableComponent>(coordinates, radius))
|
||||
var flammables = new HashSet<Entity<FlammableComponent>>();
|
||||
_lookup.GetEntitiesInRange(coordinates, radius, flammables);
|
||||
|
||||
foreach (var flammable in flammables)
|
||||
{
|
||||
var ent = flammable.Owner;
|
||||
var stackAmount = 1 + (int) (severity / 0.15f);
|
||||
|
||||
Reference in New Issue
Block a user