Fix cloth-config on 1.17.1 (#326)

This commit is contained in:
Nico Mexis
2026-03-21 15:30:51 +01:00
committed by GitHub
parent 0ab7b1bf56
commit fd205eba21

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 (mixinConfigs != null && platform == ModPlatform.FORGE && hasRefmaplessMixinConfig(fs, mixinConfigs)) {
} else if (mixinConfigs != null && !mixinConfigs.isBlank() && 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;