Player: don't catch Throwable on transaction creation failure

This commit is contained in:
Dylan K. Taylor 2018-05-28 17:00:59 +01:00
parent 2eaba7c936
commit 87ff1c0382

View File

@ -2286,7 +2286,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
if($action !== null){
$actions[] = $action;
}
}catch(\Throwable $e){
}catch(\Exception $e){
$this->server->getLogger()->debug("Unhandled inventory action from " . $this->getName() . ": " . $e->getMessage());
$this->sendAllInventories();
return false;