Fix fire extinguisher to use spray solution (#4616)

* Fix fire extinguisher to use spray solution

* Fix FireExtinguisher more properly

* Re-add missing check to VaporSystem
This commit is contained in:
Ygg01
2021-09-15 12:48:07 +02:00
committed by GitHub
parent 55b016e295
commit 12430fbfcc
3 changed files with 8 additions and 7 deletions

View File

@@ -66,12 +66,13 @@ namespace Content.Server.Chemistry.EntitySystems
return false;
}
if (!_solutionContainerSystem.TryGetSolution(vapor.Owner, SharedVaporComponent.SolutionName, out _))
if (!_solutionContainerSystem.TryGetSolution(vapor.Owner, SharedVaporComponent.SolutionName,
out var vaporSolution))
{
return false;
}
return true;
return _solutionContainerSystem.TryAddSolution(vapor.Owner.Uid, vaporSolution, solution);
}
public override void Update(float frameTime)