mirror of
https://github.com/artegoser/pimi-launcher.git
synced 2024-11-25 12:46:20 +03:00
fix: mojang dos
This commit is contained in:
parent
a429bcf6c9
commit
0b7fbafaa6
1 changed files with 5 additions and 8 deletions
|
@ -24,10 +24,11 @@ function Main() {
|
||||||
const [started, setStarted] = useState(false)
|
const [started, setStarted] = useState(false)
|
||||||
const [gameStarted, setGameStarted] = useState(false)
|
const [gameStarted, setGameStarted] = useState(false)
|
||||||
|
|
||||||
utils.getVersions().then((data) => {
|
if (!versions)
|
||||||
setVersions(data)
|
utils.getVersions().then((data) => {
|
||||||
setVersion(data[0])
|
setVersions(data.filter((v) => v.type === 'release'))
|
||||||
})
|
setVersion(data[0])
|
||||||
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
versions && (
|
versions && (
|
||||||
|
@ -45,14 +46,11 @@ function Main() {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<select
|
|
||||||
name="pets"
|
name="pets"
|
||||||
id="pet-select"
|
id="pet-select"
|
||||||
className="inputs"
|
className="inputs"
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
setVersion(versions[e.target.value])
|
|
||||||
}}
|
}}
|
||||||
>
|
|
||||||
{versions.map((version, index) => {
|
{versions.map((version, index) => {
|
||||||
return (
|
return (
|
||||||
<option key={index} value={index} className="text-1xl font-bold">
|
<option key={index} value={index} className="text-1xl font-bold">
|
||||||
|
@ -60,7 +58,6 @@ function Main() {
|
||||||
</option>
|
</option>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input
|
<input
|
||||||
|
|
Loading…
Add table
Reference in a new issue