You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The bots hangs after X times of opening a chest
To Reproduce
Steps to reproduce the behavior:
Place a chest
Make the bot try and open it and after one attempt or two it will hang forever
See error
i added this code to test the behaviour and it always fail
publicasyncTask<Window>OpenContainer(Blockblock,inttimeoutMs=10*1000){if(!Bot.Data.Windows.AllowedBlocksToOpen.Contains(block.Info.Type)){thrownewArgumentException("Cannot open block of type "+block.Info.Name);}openContainerTsc=new();varpacket=newPlaceBlockPacket((int)PlayerHand.MainHand,block.Position,BlockFace.Top,0.5f,0.5f,0.5f,false,++Bot.SequenceId);_=Bot.Client.SendPacket(packet);_=playerPlugin?.SwingArm();vartimeoutTask=Task.Delay(timeoutMs);varresultTask=openContainerTsc.Task;// << this hangsvarcompletedTask=awaitTask.WhenAny(resultTask,timeoutTask);if(completedTask==timeoutTask){openContainerTsc=null;thrownewTimeoutException("Opening container timed out.");}openContainerTsc=null;returnawaitresultTask;}
The text was updated successfully, but these errors were encountered:
Describe the bug
The bots hangs after X times of opening a chest
To Reproduce
Steps to reproduce the behavior:
i added this code to test the behaviour and it always fail
The text was updated successfully, but these errors were encountered: