Fix crash related to reagent reactions

This commit is contained in:
Víctor Aguilera Puerto
2020-10-21 23:08:31 +02:00
parent 1f56b5db0b
commit e98abd923c
2 changed files with 4 additions and 1 deletions

View File

@@ -88,6 +88,9 @@ namespace Content.Shared.Chemistry
{
var removed = ReagentUnit.Zero;
if (entity == null || entity.Deleted)
return removed;
foreach (var react in entity.GetAllComponents<IReagentReaction>())
{
switch (method)