diff --git a/package.json b/package.json index 23f0d1cfa..6d31f0d99 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "http-browserify": "^1.7.0", "http-server": "^14.1.1", "https-browserify": "^1.0.0", - "mc-assets": "^0.2.10", + "mc-assets": "^0.2.11", "minecraft-inventory-gui": "github:zardoy/minecraft-inventory-gui#next", "mineflayer": "github:zardoy/mineflayer", "mineflayer-pathfinder": "^2.4.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8a64a3c18..9cee15daf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -338,8 +338,8 @@ importers: specifier: ^1.0.0 version: 1.0.0 mc-assets: - specifier: ^0.2.10 - version: 0.2.10 + specifier: ^0.2.11 + version: 0.2.11 minecraft-inventory-gui: specifier: github:zardoy/minecraft-inventory-gui#next version: https://codeload.github.com/zardoy/minecraft-inventory-gui/tar.gz/75e940a4cd50d89e0ba03db3733d5d704917a3c8(@types/react@18.2.20)(react@18.2.0) @@ -6233,8 +6233,8 @@ packages: peerDependencies: react: ^18.2.0 - mc-assets@0.2.10: - resolution: {integrity: sha512-o/PL0mv5vMcszM/pFjp174psG7nve/GhwH8ft5QDYB5smju6HalWkqB2gG4W7nxr4y3fNuB3FJbGcOI6ZQFJ5A==} + mc-assets@0.2.11: + resolution: {integrity: sha512-j56kUmmVtWU5U+xa6diWLfi2ANftIdC9eGoueL86Ixf02vQuB3WFUZS6si0emJkcUWGtyqrr9ubztvT8cPUp2Q==} engines: {node: '>=18.0.0'} md5-file@4.0.0: @@ -16471,7 +16471,7 @@ snapshots: dependencies: react: 18.2.0 - mc-assets@0.2.10: {} + mc-assets@0.2.11: {} md5-file@4.0.0: {} diff --git a/src/index.ts b/src/index.ts index 5941c268a..4189570fb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -83,7 +83,7 @@ import { fsState } from './loadSave' import { watchFov } from './rendererUtils' import { loadInMemorySave } from './react/SingleplayerProvider' -import { downloadSoundsIfNeeded, earlyCheck as earlySoundsMapCheck } from './soundSystem' +import { downloadSoundsIfNeeded } from './soundSystem' import { ua } from './react/utils' import { handleMovementStickDelta, joystickPointer } from './react/TouchAreasControls' import { possiblyHandleStateVariable } from './googledrive' @@ -552,7 +552,6 @@ async function connect (connectOptions: ConnectOptions) { // "mapDownloader-saveInternal": false, // do not save into memory, todo must be implemeneted as we do really care of ram }) as unknown as typeof __type_bot window.bot = bot - earlySoundsMapCheck() customEvents.emit('mineflayerBotCreated') if (singleplayer || p2pMultiplayer) { // in case of p2pMultiplayer there is still flying-squid on the host side diff --git a/src/soundSystem.ts b/src/soundSystem.ts index 0187a9b01..d0caf01f9 100644 --- a/src/soundSystem.ts +++ b/src/soundSystem.ts @@ -235,19 +235,6 @@ subscribeKey(miscUiState, 'gameLoaded', async () => { // } // } -export const earlyCheck = () => { - const { allSoundsMap } = globalObject - if (!allSoundsMap) return - - // todo also use major versioned hardcoded sounds - const soundsMap = allSoundsMap[bot.version] - - if (!soundsMap) { - console.warn('No sounds map for version', bot.version, 'supported versions are', Object.keys(allSoundsMap).join(', ')) - showNotification('Warning', 'No sounds map for version ' + bot.version) - } -} - const getVersionedSound = (version: string, item: string, itemsMapSortedEntries: Array<[string, string[]]>) => { const verNumber = versionToNumber(version) for (const [itemsVer, items] of itemsMapSortedEntries) {