Revert 'Revert 'Solution Entities'' (#23168)
This commit is contained in:
@@ -20,7 +20,7 @@ public abstract class SharedSolutionContainerMixerSystem : EntitySystem
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
[Dependency] private readonly SharedContainerSystem _container = default!;
|
||||
[Dependency] private readonly SharedPopupSystem _popup = default!;
|
||||
[Dependency] private readonly SolutionContainerSystem _solution = default!;
|
||||
[Dependency] private readonly SharedSolutionContainerSystem _solution = default!;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void Initialize()
|
||||
@@ -98,10 +98,10 @@ public abstract class SharedSolutionContainerMixerSystem : EntitySystem
|
||||
|
||||
foreach (var ent in container.ContainedEntities)
|
||||
{
|
||||
if (!_solution.TryGetFitsInDispenser(ent, out var solution))
|
||||
if (!_solution.TryGetFitsInDispenser(ent, out var soln, out _))
|
||||
continue;
|
||||
|
||||
_solution.UpdateChemicals(ent, solution, true, reactionMixer);
|
||||
_solution.UpdateChemicals(soln.Value, true, reactionMixer);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user