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