Remove derpy little try/catch for RakLib dependency check (not necessary anymore)

This commit is contained in:
Dylan K. Taylor 2017-07-11 20:00:16 +01:00
parent c33972aa67
commit fa58736360

View File

@ -138,12 +138,9 @@ namespace pocketmine {
$autoloader->addPath(\pocketmine\PATH . "src" . DIRECTORY_SEPARATOR . "spl"); $autoloader->addPath(\pocketmine\PATH . "src" . DIRECTORY_SEPARATOR . "spl");
$autoloader->register(true); $autoloader->register(true);
try{
if(!class_exists(RakLib::class)){ if(!class_exists(RakLib::class)){
throw new \Exception;
}
}catch(\Exception $e){
echo "[CRITICAL] Unable to find the RakLib library." . PHP_EOL; echo "[CRITICAL] Unable to find the RakLib library." . PHP_EOL;
echo "[CRITICAL] Please use provided builds or clone the repository recursively." . PHP_EOL;
exit(1); exit(1);
} }