ArtifactMetadata: Add missing null check for MixinConfigs attribute

This commit is contained in:
Juuz
2025-12-07 18:23:46 +02:00
parent 432d05e9a6
commit 85507b8de9

View File

@@ -101,7 +101,7 @@ public record ArtifactMetadata(boolean isFabricMod, RemapRequirements remapRequi
} catch (IllegalArgumentException e) {
throw new IllegalStateException("Unknown mixin remap type: " + mixinRemapType);
}
} else if (platform == ModPlatform.FORGE && hasRefmaplessMixinConfig(fs, mixinConfigs)) {
} else if (mixinConfigs != null && platform == ModPlatform.FORGE && hasRefmaplessMixinConfig(fs, mixinConfigs)) {
// On Forge, we support both mixins with and without refmaps.
// Check for mixins without them, and if any are found, mark the remap type as static.
refmapRemapType = MixinRemapType.STATIC;