Return handled on fake window close

This commit is contained in:
Dylan K. Taylor 2017-09-16 21:55:25 +01:00
parent bd64172750
commit 8dc3d019f6

View File

@ -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;