Fix AI not using items in hand (#1273)

I love 1 character commits

Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
metalgearsloth
2020-07-05 20:17:17 +10:00
committed by GitHub
parent acec640520
commit 7e4b506aaf

View File

@@ -30,7 +30,7 @@ namespace Content.Server.AI.Operators.Inventory
return Outcome.Failed;
}
if (_target.TryGetComponent(out ItemComponent itemComponent))
if (!_target.TryGetComponent(out ItemComponent itemComponent))
{
return Outcome.Failed;
}