correctly filter minecraft releases/snapshots
This commit is contained in:
parent
7059387020
commit
8aea1f7d15
|
@ -59,7 +59,7 @@ Insert section about the installer here
|
||||||
getGameVersions().then((v) => {
|
getGameVersions().then((v) => {
|
||||||
versions = v.versions
|
versions = v.versions
|
||||||
for (let version of versions){
|
for (let version of versions){
|
||||||
if (version.type === "snapshot"){
|
if (version.type !== "release"){
|
||||||
snapshots.push(version)
|
snapshots.push(version)
|
||||||
} else {
|
} else {
|
||||||
releases.push(version)
|
releases.push(version)
|
||||||
|
|
|
@ -54,7 +54,7 @@ outline: false
|
||||||
getGameVersions().then((v) => {
|
getGameVersions().then((v) => {
|
||||||
versions = v.versions
|
versions = v.versions
|
||||||
for (let version of versions){
|
for (let version of versions){
|
||||||
if (version.type === "snapshot"){
|
if (version.type !== "release"){
|
||||||
snapshots.push(version)
|
snapshots.push(version)
|
||||||
} else {
|
} else {
|
||||||
releases.push(version)
|
releases.push(version)
|
||||||
|
|
Loading…
Reference in a new issue