mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Server: remove useless try/catch around Query event firing
this doesn't raise any exceptions, and if it causes Errors to be thrown, those are defects that should be fixed. A catch-all is a bad thing.
This commit is contained in:
parent
71c3c34976
commit
b4bf6901e3
@ -2528,14 +2528,10 @@ class Server{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(($this->tickCounter & 0b111111111) === 0){
|
if(($this->tickCounter & 0b111111111) === 0){
|
||||||
try{
|
|
||||||
$this->getPluginManager()->callEvent($this->queryRegenerateTask = new QueryRegenerateEvent($this, 5));
|
$this->getPluginManager()->callEvent($this->queryRegenerateTask = new QueryRegenerateEvent($this, 5));
|
||||||
if($this->queryHandler !== null){
|
if($this->queryHandler !== null){
|
||||||
$this->queryHandler->regenerateInfo();
|
$this->queryHandler->regenerateInfo();
|
||||||
}
|
}
|
||||||
}catch(\Throwable $e){
|
|
||||||
$this->logger->logException($e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->autoSave and ++$this->autoSaveTicker >= $this->autoSaveTicks){
|
if($this->autoSave and ++$this->autoSaveTicker >= $this->autoSaveTicks){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user