Add extensions for spilling solutions into puddles (#1991)

This commit is contained in:
DrSmugleaf
2020-09-02 01:16:25 +02:00
committed by GitHub
parent 682b6b9568
commit 61f64e15f2
6 changed files with 133 additions and 99 deletions

View File

@@ -41,7 +41,7 @@ namespace Content.Server.GameObjects.Components.Fluids
// Need this as when we split the component's owner may be deleted
var entityLocation = component.Owner.Transform.GridPosition;
var solution = solutionComponent.SplitSolution(solutionComponent.CurrentVolume);
SpillHelper.SpillAt(entityLocation, solution, "PuddleSmear");
solution.SpillAt(entityLocation, "PuddleSmear");
}
}
}