@@ -46,6 +46,19 @@ func main() {
46
46
}
47
47
48
48
BuildConfig = readBuildJson (* buildConfig )
49
+ if BuildConfig .PackAuthor == "" {
50
+ fmt .Println ("Invalid .build.json, Author not specified" )
51
+ os .Exit (1 )
52
+ } else if BuildConfig .MinecraftVersion == "" {
53
+ fmt .Println ("Invalid .build.json, Minecraft Version not specified" )
54
+ os .Exit (1 )
55
+ } else if BuildConfig .ModLoader == "" {
56
+ fmt .Println ("Invalid .build.json, Mod Loader not specified" )
57
+ os .Exit (1 )
58
+ } else if BuildConfig .ModLoaderVersion == "" {
59
+ fmt .Println ("Invalid .build.json, Mod Loader Version not specified" )
60
+ os .Exit (1 )
61
+ }
49
62
PackDIR = * mcDirCLI
50
63
readMCDIR (* mcDirCLI )
51
64
}
@@ -147,7 +160,8 @@ func createExport(projectFiles []fingerprintExactMatches) {
147
160
for _ , file := range projectFiles {
148
161
tempFiles = append (tempFiles , manifestFiles {file .Id , file .File .Id , true })
149
162
}
150
- modloader = append (modloader , manifestMinecraftModLoaders {"forge-" + BuildConfig .ForgeVersion , true })
163
+ //modloader = append(modloader, manifestMinecraftModLoaders{"forge-" + BuildConfig.ForgeVersion, true})
164
+ modloader = append (modloader , manifestMinecraftModLoaders {BuildConfig .ModLoader + "-" + BuildConfig .ModLoaderVersion , true })
151
165
manifestMc := manifestMinecraft {BuildConfig .MinecraftVersion , modloader }
152
166
manifestB := manifestBase {manifestMc , "minecraftModpack" , 1 , * ExportName , * PackVersion , BuildConfig .PackAuthor , tempFiles , "overrides" }
153
167
// test below
0 commit comments