Fabric: Fall back to modid in MethodMapper#getMixinSourceId.

This commit is contained in:
LlamaLad7 committed 2024-05-19 22:12:41 +01:00
1 parent 998f057459
commit a1d5becea7
1 file changed
+5 -1
@@ -183,7 +183,11 @@ class MethodMapper {
private static String getMixinSourceId(MixinInfo mixin, String separator) {
String sourceId = mixin.getConfig().getCleanSourceId();
if (sourceId == null) {
return "";
String modId = FabricUtil.getModId(mixin.getConfig(), null);
if (modId == null) {
return "";
}
return modId + separator;
}
if (sourceId.length() > 12) {
sourceId = sourceId.substring(0, 12);