Openable refactor (#19750)
This commit is contained in:
@@ -47,7 +47,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!_solutionContainerSystem.TryGetSolution(uid, food.SolutionName, out var solution))
|
||||
if (!_solutionContainerSystem.TryGetSolution(uid, food.Solution, out var solution))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -136,7 +136,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
{
|
||||
// Replace all reagents on prototype not just copying poisons (example: slices of eaten pizza should have less nutrition)
|
||||
if (TryComp<FoodComponent>(sliceUid, out var sliceFoodComp) &&
|
||||
_solutionContainerSystem.TryGetSolution(sliceUid, sliceFoodComp.SolutionName, out var itsSolution))
|
||||
_solutionContainerSystem.TryGetSolution(sliceUid, sliceFoodComp.Solution, out var itsSolution))
|
||||
{
|
||||
_solutionContainerSystem.RemoveAllSolution(sliceUid, itsSolution);
|
||||
|
||||
@@ -151,7 +151,7 @@ namespace Content.Server.Nutrition.EntitySystems
|
||||
var foodComp = EnsureComp<FoodComponent>(uid);
|
||||
|
||||
EnsureComp<SolutionContainerManagerComponent>(uid);
|
||||
_solutionContainerSystem.EnsureSolution(uid, foodComp.SolutionName);
|
||||
_solutionContainerSystem.EnsureSolution(uid, foodComp.Solution);
|
||||
}
|
||||
|
||||
private void OnExamined(EntityUid uid, SliceableFoodComponent component, ExaminedEvent args)
|
||||
|
||||
Reference in New Issue
Block a user