fix more grass block item render and remove misleading sounds warning
This commit is contained in:
parent
dd285544c3
commit
39ccf846c2
4 changed files with 7 additions and 21 deletions
|
|
@ -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",
|
||||
|
|
|
|||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
|
|
@ -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: {}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue