mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-28 13:45:52 +00:00
Return handled on fake window close
This commit is contained in:
parent
bd64172750
commit
8dc3d019f6
@ -2763,6 +2763,9 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
$this->server->getPluginManager()->callEvent(new InventoryCloseEvent($this->windowIndex[$packet->windowId], $this));
|
$this->server->getPluginManager()->callEvent(new InventoryCloseEvent($this->windowIndex[$packet->windowId], $this));
|
||||||
$this->removeWindow($this->windowIndex[$packet->windowId]);
|
$this->removeWindow($this->windowIndex[$packet->windowId]);
|
||||||
return true;
|
return true;
|
||||||
|
}elseif($packet->windowId === 255){
|
||||||
|
//Closed a fake window
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user