Skip to content

Commit a67afdb

Browse files
committed
Add 1.21.5 and pig_variant, set default version to 1.21.4
1 parent 9697b3e commit a67afdb

File tree

5 files changed

+133
-100
lines changed

5 files changed

+133
-100
lines changed

package-lock.json

Lines changed: 111 additions & 91 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.17",
20-
"@spyglassmc/java-edition": "^0.3.23",
21-
"@spyglassmc/json": "^0.3.20",
22-
"@spyglassmc/locales": "^0.3.10",
23-
"@spyglassmc/mcdoc": "^0.3.21",
24-
"@spyglassmc/nbt": "^0.3.21",
19+
"@spyglassmc/core": "^0.4.22",
20+
"@spyglassmc/java-edition": "^0.3.28",
21+
"@spyglassmc/json": "^0.3.25",
22+
"@spyglassmc/locales": "^0.3.12",
23+
"@spyglassmc/mcdoc": "^0.3.26",
24+
"@spyglassmc/nbt": "^0.3.26",
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'] 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'] as const
44
export type VersionId = typeof VersionIds[number]
55

6-
export const DEFAULT_VERSION: VersionId = '1.21.2'
6+
export const DEFAULT_VERSION: VersionId = '1.21.4'
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: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,17 @@
165165
},
166166
{
167167
"id": "1.21.4",
168-
"dynamic": true,
168+
"ref": "1.21.4",
169169
"name": "1.21.4",
170170
"pack_format": 61,
171171
"show": true
172+
},
173+
{
174+
"id": "1.21.5",
175+
"dynamic": true,
176+
"name": "1.21.5",
177+
"pack_format": 62,
178+
"show": true
172179
}
173180
],
174181
"generators": [
@@ -264,6 +271,11 @@
264271
"url": "trial-spawner",
265272
"minVersion": "1.21.2"
266273
},
274+
{
275+
"id": "pig_variant",
276+
"url": "pig-variant",
277+
"minVersion": "1.21.5"
278+
},
267279
{
268280
"id": "text_component",
269281
"url": "text-component",

src/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
"generator.sky_aesthetics:sky": "Custom Sky",
100100
"generator.pack_mcmeta": "pack.mcmeta",
101101
"generator.painting_variant": "Painting Variant",
102+
"generator.pig_variant": "Pig Variant",
102103
"generator.post_effect": "Post Effect",
103104
"generator.predicate": "Predicate",
104105
"generator.recipe": "Recipe",

0 commit comments

Comments
 (0)