Remove 700 usages of Component.Owner (#21100)
This commit is contained in:
@@ -130,14 +130,15 @@ public sealed class SpraySystem : EntitySystem
|
||||
|
||||
// Add the solution to the vapor and actually send the thing
|
||||
var vaporComponent = Comp<VaporComponent>(vapor);
|
||||
_vapor.TryAddSolution(vaporComponent, newSolution);
|
||||
var ent = (vapor, vaporComponent);
|
||||
_vapor.TryAddSolution(ent, newSolution);
|
||||
|
||||
// impulse direction is defined in world-coordinates, not local coordinates
|
||||
var impulseDirection = rotation.ToVec();
|
||||
var time = diffLength / component.SprayVelocity;
|
||||
cooldownTime = MathF.Max(time, cooldownTime);
|
||||
|
||||
_vapor.Start(vaporComponent, vaporXform, impulseDirection * diffLength, component.SprayVelocity, target, time, args.User);
|
||||
_vapor.Start(ent, vaporXform, impulseDirection * diffLength, component.SprayVelocity, target, time, args.User);
|
||||
|
||||
if (TryComp<PhysicsComponent>(args.User, out var body))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user