We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab3ab2d commit fa44a16Copy full SHA for fa44a16
1 file changed
src/muqsit/invmenu/session/PlayerWindowDispatcher.php
@@ -126,6 +126,10 @@ public function run() : void{
126
127
public function setResult(bool $result) : void{
128
$this->result = $result;
129
+ if(!$result){
130
+ // this belongs here so we do not end up calling inventory close listener on failed dispatches
131
+ $this->session->current = null;
132
+ }
133
$this->task_handler?->cancel();
134
$this->task_handler = null;
135
if($this->session->player->isConnected()){
0 commit comments