From bed2e185751bc5f4b7b978502860d8684d4f5412 Mon Sep 17 00:00:00 2001 From: Madpeterz <57852827+Madpeterz@users.noreply.github.com> Date: Fri, 26 Feb 2021 03:59:42 +0000 Subject: [PATCH] Update Parcel.cs --- Core/Commands/Parcel.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Core/Commands/Parcel.cs b/Core/Commands/Parcel.cs index 4043620..c4309fc 100644 --- a/Core/Commands/Parcel.cs +++ b/Core/Commands/Parcel.cs @@ -460,6 +460,24 @@ namespace BetterSecondBot.HttpService return Failure(tests.Value); } Dictionary reply = new Dictionary(); + int delays = 0; + bool haslookup = true; + while ((haslookup == true) || (delays < 3)) + { + haslookup = false; + foreach (ParcelAccessEntry e in targetparcel.AccessBlackList) + { + if(bot.FindAvatarKey2Name(e.AgentID) == "lookup") + { + haslookup = true; + } + } + if(haslookup == true) + { + Thread.Sleep(1000); + delays++; + } + } foreach (ParcelAccessEntry e in targetparcel.AccessBlackList) { string name = bot.FindAvatarKey2Name(e.AgentID);