From b081394125f90c14d6894b24e2edb32f3284b3a0 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 8 Dec 2021 21:57:16 +0000 Subject: [PATCH] Do not restrict the allowed update channels client-side we really should have an endpoint on the server that deals with this. --- src/pocketmine/updater/AutoUpdater.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/pocketmine/updater/AutoUpdater.php b/src/pocketmine/updater/AutoUpdater.php index 33d0472ef..9e505dfe1 100644 --- a/src/pocketmine/updater/AutoUpdater.php +++ b/src/pocketmine/updater/AutoUpdater.php @@ -201,12 +201,7 @@ class AutoUpdater{ * Returns the channel used for update checking (stable, beta, dev) */ public function getChannel() : string{ - $channel = strtolower($this->server->getProperty("auto-updater.preferred-channel", "stable")); - if($channel !== "stable" and $channel !== "beta" and $channel !== "alpha" and $channel !== "development"){ - $channel = "stable"; - } - - return $channel; + return strtolower($this->server->getProperty("auto-updater.preferred-channel", "stable")); } /**