Player: clean up container close handling

This commit is contained in:
Dylan K. Taylor
2018-07-20 11:36:56 +01:00
parent e16f20affa
commit 25cfcada26
2 changed files with 32 additions and 21 deletions

View File

@ -146,7 +146,7 @@ class SimpleSessionHandler extends SessionHandler{
}
public function handleContainerClose(ContainerClosePacket $packet) : bool{
return $this->player->handleContainerClose($packet);
return $this->player->doCloseWindow($packet->windowId);
}
public function handlePlayerHotbar(PlayerHotbarPacket $packet) : bool{