mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 19:24:12 +00:00
Improved AutoUpdater error handling and made it more robust
This commit is contained in:
@ -164,7 +164,7 @@ class AutoUpdater{
|
||||
*/
|
||||
public function getChannel(){
|
||||
$channel = strtolower($this->server->getProperty("auto-updater.preferred-channel", "stable"));
|
||||
if($channel !== "stable" and $channel !== "beta" and $channel !== "development"){
|
||||
if($channel !== "stable" and $channel !== "beta" and $channel !== "alpha" and $channel !== "development"){
|
||||
$channel = "stable";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user