We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf812d8 commit 2eb4954Copy full SHA for 2eb4954
src/systems/minecraft/assetManager.ts
@@ -79,6 +79,12 @@ export async function checkForAssetsUpdate() {
79
}
80
81
82
+ const cachedJarFilePath = getCachedJarFilePath()
83
+ if (!fs.existsSync(cachedJarFilePath)) {
84
+ console.log('No cached Minecraft client found, updating assets...')
85
+ await updateAssets()
86
+ }
87
+
88
await extractAssets()
89
console.log('Minecraft assets are up to date!')
90
requestAnimationFrame(() => events.MINECRAFT_ASSETS_LOADED.dispatch())
0 commit comments