Skip to content

Commit 7e42d13

Browse files
committed
Update spyglass and add 1.21.11 support
1 parent 9c1ed06 commit 7e42d13

File tree

5 files changed

+101
-94
lines changed

5 files changed

+101
-94
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
gtag('config', 'G-S982VZS08T', {
1111
send_page_view: false,
1212
theme: localStorage.getItem('theme') || 'default',
13-
version: localStorage.getItem('schema_version') || '1.21.6',
13+
version: localStorage.getItem('schema_version') || '1.21.9',
1414
locale: localStorage.getItem('language') || 'en',
1515
prefers_color_scheme: matchMedia('(prefers-color-scheme: light)').matches ? 'light' : matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'none',
1616
tree_view_mode: localStorage.getItem('misode_tree_view_mode') || 'default',

package-lock.json

Lines changed: 82 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"license": "MIT",
1717
"dependencies": {
1818
"@giscus/react": "^2.2.3",
19-
"@spyglassmc/core": "^0.4.33",
20-
"@spyglassmc/java-edition": "^0.3.44",
21-
"@spyglassmc/json": "^0.3.37",
22-
"@spyglassmc/locales": "^0.3.17",
23-
"@spyglassmc/mcdoc": "^0.3.37",
24-
"@spyglassmc/nbt": "^0.3.38",
19+
"@spyglassmc/core": "^0.4.37",
20+
"@spyglassmc/java-edition": "^0.3.49",
21+
"@spyglassmc/json": "^0.3.41",
22+
"@spyglassmc/locales": "^0.3.19",
23+
"@spyglassmc/mcdoc": "^0.3.41",
24+
"@spyglassmc/nbt": "^0.3.43",
2525
"@zip.js/zip.js": "^2.4.5",
2626
"brace": "^0.11.1",
2727
"buffer": "^6.0.3",

src/app/services/Versions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import config from '../Config.js'
22

3-
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19', '1.19.3', '1.19.4', '1.20', '1.20.2', '1.20.3', '1.20.5', '1.21', '1.21.2', '1.21.4', '1.21.5', '1.21.6', '1.21.9'] as const
3+
export const VersionIds = ['1.15', '1.16', '1.17', '1.18', '1.18.2', '1.19', '1.19.3', '1.19.4', '1.20', '1.20.2', '1.20.3', '1.20.5', '1.21', '1.21.2', '1.21.4', '1.21.5', '1.21.6', '1.21.9', '1.21.11'] as const
44
export type VersionId = typeof VersionIds[number]
55

6-
export const DEFAULT_VERSION: VersionId = '1.21.6'
6+
export const DEFAULT_VERSION: VersionId = '1.21.9'
77

88
export function checkVersion(versionId: string, minVersionId: string | undefined, maxVersionId?: string) {
99
const version = config.versions.findIndex(v => v.id === versionId)

src/config.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,23 @@
191191
},
192192
{
193193
"id": "1.21.6",
194-
"ref": "1.21.7",
194+
"ref": "1.21.8",
195195
"name": "1.21.6 — 1.21.8",
196196
"pack_format": 81,
197197
"show": true
198198
},
199199
{
200200
"id": "1.21.9",
201+
"ref": "1.21.10",
202+
"name": "1.21.9 — 1.21.10",
203+
"pack_format": 88,
204+
"show": true
205+
},
206+
{
207+
"id": "1.21.11",
201208
"dynamic": true,
202-
"name": "1.21.9",
203-
"pack_format": 83,
209+
"name": "1.21.11",
210+
"pack_format": 90,
204211
"show": true
205212
}
206213
],

0 commit comments

Comments
 (0)