Fix ChemMaster bottles not having contents (#5026)

This commit is contained in:
20kdc
2021-10-25 15:58:16 +01:00
committed by GitHub
parent 5fc101307d
commit c29b23eb64
2 changed files with 2 additions and 2 deletions

View File

@@ -304,7 +304,7 @@ namespace Content.Server.Chemistry.Components
var bottle = Owner.EntityManager.SpawnEntity("ChemistryEmptyBottle01", Owner.Transform.Coordinates); var bottle = Owner.EntityManager.SpawnEntity("ChemistryEmptyBottle01", Owner.Transform.Coordinates);
var bufferSolution = BufferSolution.SplitSolution(actualVolume); var bufferSolution = BufferSolution.SplitSolution(actualVolume);
var bottleSolution = EntitySystem.Get<SolutionContainerSystem>().EnsureSolution(bottle, "bottle"); var bottleSolution = EntitySystem.Get<SolutionContainerSystem>().EnsureSolution(bottle, "drink");
EntitySystem.Get<SolutionContainerSystem>().TryAddSolution(bottle.Uid, bottleSolution, bufferSolution); EntitySystem.Get<SolutionContainerSystem>().TryAddSolution(bottle.Uid, bottleSolution, bufferSolution);

View File

@@ -16,7 +16,7 @@
isOpen: true isOpen: true
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
drink: drink: # This solution name and target volume is hard-coded in ChemMasterComponent
maxVol: 30 maxVol: 30
- type: RefillableSolution - type: RefillableSolution
solution: drink solution: drink