Skip to content

Commit

Permalink
Add Baritone download button
Browse files Browse the repository at this point in the history
  • Loading branch information
MineGame159 committed Oct 22, 2023
1 parent 103bd4e commit dcd6781
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/lib/components/info.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
<div class="buttons">
<a href="/download" target="_blank" class="button"><img src="/icons/download.svg" alt="download"> Release {stats.version} [{stats.mcVersion}]</a>
<a href="/download?devBuild" target="_blank" class="button"><img src="/icons/download.svg" alt="download"> Dev Build {stats.devBuildVersion} [{stats.devBuildMcVersion}]</a>
<a href="/api/downloadBaritone" target="_blank" class="button"><img src="/icons/download.svg" alt="download"> *Baritone [{stats.baritoneMcVersion}]</a>
</div>

<p>* Baritone is our <a href="https://github.com/MeteorDevelopment/baritone">fork</a> which was previously included in Meteor itself. If you want the most up to date version, or want help with Baritone go to the <a href="https://github.com/wagyourtail/baritone">official sources</a>.</p>
</div>
</div>

Expand All @@ -27,7 +30,7 @@
flex-direction: column;
align-items: center;
gap: 1rem;
margin-top: 1rem;
margin: 1rem 0;
}
.button {
Expand Down
4 changes: 3 additions & 1 deletion src/lib/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export interface Stats {

mcVersion: string;
devBuildMcVersion: string;
baritoneMcVersion: string;

downloads: number;
onlinePlayers: number;
Expand All @@ -18,8 +19,9 @@ export async function fetchStats(fetch: any): Promise<Stats> {

mcVersion: stats.mc_version,
devBuildMcVersion: stats.dev_build_mc_version,
baritoneMcVersion: stats.baritone_mc_version,

downloads: stats.downloads,
onlinePlayers: stats.onlinePlayers
};
}
}

0 comments on commit dcd6781

Please sign in to comment.