mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-25 02:54:21 +00:00
Fabric: Fall back to modid in MethodMapper#getMixinSourceId.
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user