diff --git a/app/Libraries/MinecraftUtils.php b/app/Libraries/MinecraftUtils.php index 784e1499..113da726 100644 --- a/app/Libraries/MinecraftUtils.php +++ b/app/Libraries/MinecraftUtils.php @@ -46,7 +46,7 @@ public static function fetchVersions() // The format is ['1.12.2' => ['version' => '1.12.2'], ...] $versions = []; - foreach ($json as $mojangVersion) { + foreach ($json['versions'] as $mojangVersion) { if ($mojangVersion['type'] !== 'release') { continue; }