Skip to content

Commit

Permalink
possible test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Spatison committed Nov 30, 2024
1 parent 6b85573 commit dc9cb79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Content.IntegrationTests/Tests/Fluids/AbsorbentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ await server.WaitAssertion(() =>
solutionContainerSystem.AddSolution(refillableSoln.Value, new Solution(NonEvaporablePrototypeId, testCase.InitialRefillableSolution.VolumeOfNonEvaporable));

// Act
absorbentSystem.Mop(user, refillable, component, absorbent.ToCoordinates(), absorbent); // WD EDIT
absorbentSystem.Mop(user, absorbent, component, refillable.ToCoordinates(), refillable); // WD EDIT

// Assert
var absorbentComposition = absorbentSolution.GetReagentPrototypes(prototypeManager).ToDictionary(r => r.Key.ID, r => r.Value);
Expand Down Expand Up @@ -169,7 +169,7 @@ await server.WaitAssertion(() =>
solutionContainerSystem.AddSolution(refillableSoln.Value, new Solution(NonEvaporablePrototypeId, testCase.InitialRefillableSolution.VolumeOfNonEvaporable));

// Act
absorbentSystem.Mop(user, refillable, component, absorbent.ToCoordinates(), absorbent); // WD EDIT
absorbentSystem.Mop(user, absorbent, component, refillable.ToCoordinates(), refillable); // WD EDIT

// Assert
var absorbentComposition = absorbentSolution.GetReagentPrototypes(prototypeManager).ToDictionary(r => r.Key.ID, r => r.Value);
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Fluids/EntitySystems/AbsorbentSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public void Mop(EntityUid user, EntityUid used, AbsorbentComponent component, En
/// <summary>
/// Logic for an absorbing entity interacting with a refillable.
/// </summary>
private bool TryRefillableInteract(EntityUid user, EntityUid used, EntityUid target, AbsorbentComponent component, UseDelayComponent? useDelay, Entity<SolutionComponent> absorbentSoln)
public bool TryRefillableInteract(EntityUid user, EntityUid used, EntityUid target, AbsorbentComponent component, UseDelayComponent? useDelay, Entity<SolutionComponent> absorbentSoln)
{
if (!TryComp(target, out RefillableSolutionComponent? refillable))
return false;
Expand Down

0 comments on commit dc9cb79

Please sign in to comment.