Fixed PHPStan 0.12.74 error in WorldManager

This commit is contained in:
Dylan K. Taylor 2021-02-11 16:54:14 +00:00
parent de0766dbef
commit c21ec614fc
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -199,11 +199,11 @@ class WorldManager{
} }
$providerClass = array_shift($providers); $providerClass = array_shift($providers);
try{
/** /**
* @var WorldProvider $provider * @var WorldProvider $provider
* @see WorldProvider::__construct() * @see WorldProvider::__construct()
*/ */
try{
$provider = new $providerClass($path); $provider = new $providerClass($path);
}catch(CorruptedWorldException $e){ }catch(CorruptedWorldException $e){
$this->server->getLogger()->error($this->server->getLanguage()->translateString("pocketmine.level.loadError", [$name, "Corruption detected: " . $e->getMessage()])); $this->server->getLogger()->error($this->server->getLanguage()->translateString("pocketmine.level.loadError", [$name, "Corruption detected: " . $e->getMessage()]));