Update Inventory.cs

corrects a check when sending inventory so the command works
This commit is contained in:
Madpeterz 2021-06-13 17:02:36 +01:00
parent 150f4f9686
commit 0ad74a5b4f

View file

@ -304,7 +304,7 @@ namespace BetterSecondBot.HttpService
{
return Failure("Invaild avatar uuid", "SendItem", new [] { item, avatar });
}
if (UUID.TryParse(item, out UUID targetitem) == true)
if (UUID.TryParse(item, out UUID targetitem) == false)
{
return Failure("Invaild item uuid", "SendItem", new [] { item, avatar });
}