mirror of
https://github.com/packwiz/packwiz.git
synced 2025-08-20 15:06:31 +02:00
parent
3ed92e8ee7
commit
c3a6e56882
@ -4,9 +4,10 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/packwiz/packwiz/core"
|
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/packwiz/packwiz/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ReadMetadata(s ImportPackSource) ImportPackMetadata {
|
func ReadMetadata(s ImportPackSource) ImportPackMetadata {
|
||||||
@ -93,6 +94,11 @@ func WriteManifestFromPack(pack core.Pack, fileRefs []AddonFileReference, projec
|
|||||||
ID: "forge-" + forgeVersion,
|
ID: "forge-" + forgeVersion,
|
||||||
Primary: true,
|
Primary: true,
|
||||||
})
|
})
|
||||||
|
} else if neoforgeVersion, ok := pack.Versions["neoforge"]; ok {
|
||||||
|
modLoaders = append(modLoaders, modLoaderDef{
|
||||||
|
ID: "neoforge-" + neoforgeVersion,
|
||||||
|
Primary: true,
|
||||||
|
})
|
||||||
} else if quiltVersion, ok := pack.Versions["quilt"]; ok {
|
} else if quiltVersion, ok := pack.Versions["quilt"]; ok {
|
||||||
modLoaders = append(modLoaders, modLoaderDef{
|
modLoaders = append(modLoaders, modLoaderDef{
|
||||||
ID: "quilt-" + quiltVersion,
|
ID: "quilt-" + quiltVersion,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user