Skip to content

Commit

Permalink
More CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezeEngine committed Jan 5, 2025
1 parent 071918b commit f113272
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,13 @@ export class Particle {
);
}

export let testedVersions: string[]
export let latestSupportedVersion: string
export let oldestSupportedVersion: string
export interface VersionDetails {
testedVersions: string[];
latestSupportedVersion: string;
oldestSupportedVersion: string;
}

export let supportedVersionsPC: VersionDetails
export let supportedVersionsBedrock: VersionDetails

export function supportFeature (feature: string, version: string): boolean
2 changes: 1 addition & 1 deletion test/externalTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const download = require('minecraft-wrap').download

const MC_SERVER_PATH = path.join(__dirname, 'server')

for (const supportedVersion of mineflayer.testedVersions) {
for (const supportedVersion of mineflayer.supportedVersionsPC.testedVersions) {
let PORT = 25565
const registry = require('prismarine-registry')(supportedVersion)
const version = registry.version
Expand Down
2 changes: 1 addition & 1 deletion test/internalTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const assert = require('assert')
const { sleep } = require('../lib/promise_utils')
const nbt = require('prismarine-nbt')

for (const supportedVersion of mineflayer.testedVersions) {
for (const supportedVersion of mineflayer.supportedVersionsPC.testedVersions) {
const registry = require('prismarine-registry')(supportedVersion)
const version = registry.version
const Chunk = require('prismarine-chunk')(supportedVersion)
Expand Down

0 comments on commit f113272

Please sign in to comment.