Allow solutions to store extra reagent data (#19323)
This commit is contained in:
@@ -62,7 +62,7 @@ namespace Content.Server.Administration.Commands
|
||||
if (quantityFloat > 0)
|
||||
EntitySystem.Get<SolutionContainerSystem>().TryAddReagent(uid, solution, args[2], quantity, out var _);
|
||||
else
|
||||
EntitySystem.Get<SolutionContainerSystem>().TryRemoveReagent(uid, solution, args[2], quantity);
|
||||
EntitySystem.Get<SolutionContainerSystem>().RemoveReagent(uid, solution, args[2], quantity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public sealed class SolutionCommand : ToolshedCommand
|
||||
}
|
||||
else if (amount < 0)
|
||||
{
|
||||
_solutionContainer.TryRemoveReagent(input.Owner, input.Solution, name.Value.ID, -amount);
|
||||
_solutionContainer.RemoveReagent(input.Owner, input.Solution, name.Value.ID, -amount);
|
||||
}
|
||||
|
||||
return input;
|
||||
|
||||
Reference in New Issue
Block a user