Convert VersionInfo into a final class

this allows it to be loaded by the autoloader without additional changes.
This commit is contained in:
Dylan K. Taylor
2020-07-25 19:00:48 +01:00
parent 5910905e95
commit 2645b19617
11 changed files with 45 additions and 45 deletions

View File

@ -33,6 +33,7 @@ use pocketmine\utils\Process;
use pocketmine\utils\Utils;
use pocketmine\utils\VersionString;
use pocketmine\uuid\UUID;
use pocketmine\VersionInfo;
use function array_map;
use function array_values;
use function count;
@ -71,7 +72,7 @@ class SendUsageTask extends AsyncTask{
case self::TYPE_OPEN:
$data["event"] = "open";
$version = new VersionString(\pocketmine\BASE_VERSION, \pocketmine\IS_DEVELOPMENT_BUILD, \pocketmine\BUILD_NUMBER);
$version = new VersionString(VersionInfo::BASE_VERSION, VersionInfo::IS_DEVELOPMENT_BUILD, VersionInfo::BUILD_NUMBER);
$data["server"] = [
"port" => $server->getPort(),