Fixes exception when solution reaction completely removes reagent.
Fixed #3053
This commit is contained in:
@@ -321,7 +321,7 @@ namespace Content.Shared.Chemistry
|
|||||||
{
|
{
|
||||||
var proto = IoCManager.Resolve<IPrototypeManager>();
|
var proto = IoCManager.Resolve<IPrototypeManager>();
|
||||||
|
|
||||||
foreach (var (reagentId, quantity) in _contents)
|
foreach (var (reagentId, quantity) in _contents.ToArray())
|
||||||
{
|
{
|
||||||
if (!proto.TryIndex(reagentId, out ReagentPrototype reagent))
|
if (!proto.TryIndex(reagentId, out ReagentPrototype reagent))
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user