From dcd67817f0739b138b967e19c01f2596cbd06168 Mon Sep 17 00:00:00 2001 From: MineGame159 Date: Sun, 22 Oct 2023 14:04:43 +0200 Subject: [PATCH] Add Baritone download button --- src/lib/components/info.svelte | 5 ++++- src/lib/stats.ts | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/components/info.svelte b/src/lib/components/info.svelte index c484202..10df0e4 100644 --- a/src/lib/components/info.svelte +++ b/src/lib/components/info.svelte @@ -17,7 +17,10 @@
download Release {stats.version} [{stats.mcVersion}] download Dev Build {stats.devBuildVersion} [{stats.devBuildMcVersion}] + download *Baritone [{stats.baritoneMcVersion}]
+ +

* Baritone is our fork which was previously included in Meteor itself. If you want the most up to date version, or want help with Baritone go to the official sources.

@@ -27,7 +30,7 @@ flex-direction: column; align-items: center; gap: 1rem; - margin-top: 1rem; + margin: 1rem 0; } .button { diff --git a/src/lib/stats.ts b/src/lib/stats.ts index 643c921..5b50fcb 100644 --- a/src/lib/stats.ts +++ b/src/lib/stats.ts @@ -4,6 +4,7 @@ export interface Stats { mcVersion: string; devBuildMcVersion: string; + baritoneMcVersion: string; downloads: number; onlinePlayers: number; @@ -18,8 +19,9 @@ export async function fetchStats(fetch: any): Promise { mcVersion: stats.mc_version, devBuildMcVersion: stats.dev_build_mc_version, + baritoneMcVersion: stats.baritone_mc_version, downloads: stats.downloads, onlinePlayers: stats.onlinePlayers }; -} \ No newline at end of file +}