Skip to content

Commit 26e5a8e

Browse files
committed
Fix debug info modsEnabled always being false
1 parent f44ed05 commit 26e5a8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/app/debug_info.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ func addMetadata(writer *zip.Writer) error {
199199
SMLVersion: smlVersion,
200200
}
201201

202+
if selectedInstallInstance != nil {
203+
metadata.ModsEnabled = !selectedInstallInstance.Vanilla
204+
}
205+
202206
metadataBytes, err := utils.JSONMarshal(metadata, 2)
203207
if err != nil {
204208
return fmt.Errorf("failed to marshal metadata: %w", err)

0 commit comments

Comments
 (0)