Skip to content

Commit

Permalink
feat: add 1.20.4 data
Browse files Browse the repository at this point in the history
fix: data for some versions were missing like 1.16.4 or 1.16.5
  • Loading branch information
zardoy committed Jan 10, 2025
1 parent 87b795b commit 30dd64a
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 41 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"google-drive-browserfs": "github:zardoy/browserfs#google-drive",
"jszip": "^3.10.1",
"lodash-es": "^4.17.21",
"minecraft-data": "3.80.0",
"minecraft-data": "3.83.1",
"minecraft-protocol": "github:PrismarineJS/node-minecraft-protocol#master",
"mineflayer-item-map-downloader": "github:zardoy/mineflayer-item-map-downloader",
"mojangson": "^2.0.4",
Expand Down Expand Up @@ -174,7 +174,7 @@
"diamond-square": "github:zardoy/diamond-square",
"prismarine-block": "github:zardoy/prismarine-block#next-era",
"prismarine-world": "github:zardoy/prismarine-world#next-era",
"minecraft-data": "3.80.0",
"minecraft-data": "3.83.1",
"prismarine-provider-anvil": "github:zardoy/prismarine-provider-anvil#everything",
"prismarine-physics": "github:zardoy/prismarine-physics",
"minecraft-protocol": "github:PrismarineJS/node-minecraft-protocol#master",
Expand Down
90 changes: 54 additions & 36 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions src/supportedVersions.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { supportedVersions } from 'minecraft-data'
import { supportedVersions, postNettyVersionsByProtocolVersion } from 'minecraft-data'

const ignoredVersionsRegex = /(^0\.30c$)|w|-pre|-rc/
export const ignoredVersionsRegex = /(^0\.30c$)|w|-pre|-rc/

export default supportedVersions.pc.filter(x => x !== '1.7').filter(v => !ignoredVersionsRegex.test(v))
const versionsFromProtocol = Object.values(postNettyVersionsByProtocolVersion.pc).flat().filter(x => !ignoredVersionsRegex.test(x.minecraftVersion)).map(x => x.minecraftVersion)

export default versionsFromProtocol.filter(x => x !== '1.7' && !x.startsWith('1.7.'))

0 comments on commit 30dd64a

Please sign in to comment.