Fix AI inventory deleted exc (#1810)

Was throwing during eating / drinking.

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-08-20 21:47:20 +10:00
committed by GitHub
parent f61d891ebc
commit c6abeda53b

View File

@@ -16,6 +16,9 @@ namespace Content.Server.AI.WorldState.States.Inventory
{
foreach (var item in handsComponent.GetAllHeldItems())
{
if (item.Owner.Deleted)
continue;
yield return item.Owner;
}
}