Provide default when modpack doesn't specify loader (#4930)

* fix no modpack loader, default to minecraft loader

* use v2 create then modify with v3 for environment
This commit is contained in:
Truman Gao
2025-12-18 15:54:00 -08:00
committed by GitHub
parent 8fb38ba0f2
commit 0268600044
2 changed files with 10 additions and 2 deletions

View File

@@ -133,6 +133,8 @@ const addDetectedData = async () => {
if (projectType.value === 'resourcepack') {
draftVersion.value.loaders = ['minecraft']
} else if (projectType.value === 'modpack' && draftVersion.value.loaders?.length === 0) {
draftVersion.value.loaders = ['minecraft']
}
}