Fix recycler throwing (#2187)

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-10-08 06:07:41 +11:00
committed by GitHub
parent bb35845a59
commit 7dfb9a413c

View File

@@ -181,7 +181,7 @@ namespace Content.Server.GameObjects.Components.Recycling
{
var entity = _intersecting[i];
if (!CanMove(entity) || !_entityManager.IsIntersecting(Owner, entity))
if (entity.Deleted || !CanMove(entity) || !_entityManager.IsIntersecting(Owner, entity))
{
_intersecting.RemoveAt(i);
continue;