From 7d6fcd9575d31ed01ddf693d67101e2cde66329b Mon Sep 17 00:00:00 2001 From: Ella-AWS <111664173+EllaCoat@users.noreply.github.com> Date: Sun, 16 Aug 2026 07:29:17 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Blueprint=E8=AA=AD=E8=BE=BC?= =?UTF-8?q?=E6=99=82=E3=81=ABload=5Fproject=E3=82=92=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/formats/blueprint/codec.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/formats/blueprint/codec.ts b/src/formats/blueprint/codec.ts index 7401d470..fc07e69e 100644 --- a/src/formats/blueprint/codec.ts +++ b/src/formats/blueprint/codec.ts @@ -38,12 +38,17 @@ export const BLUEPRINT_CODEC = registerDeletableHandlerPatch({ setupProject(format, model.meta?.uuid) if (!Project) throw new Error('Failed to load Animated Java Blueprint') - this.parse!(model, file.path) - const name = pathToName(file.path, true) + Project.name = pathToName(name, false) if (file.path && isApp && !file.no_file) { - Project.name = pathToName(file.path, false) Project.save_path = file.path + } + + // Match Blockbench's project codec lifecycle for integrations that observe project loads. + Blockbench.dispatchEvent('load_project', { model, path: file.path }) + this.parse!(model, file.path) + + if (file.path && isApp && !file.no_file) { addRecentProject({ name, path: file.path,