Slightly fixed up the mixin plugin

This commit is contained in:
coolGi
2023-03-17 22:36:22 +10:30
parent 769d5739b8
commit cd156630a8
2 changed files with 3 additions and 2 deletions
@@ -14,6 +14,7 @@ import java.util.Set;
* @author coolGi
* @author cortex
*/
// TODO: Move to common if possible
public class FabricMixinPlugin implements IMixinConfigPlugin {
@Override
@@ -23,7 +24,7 @@ public class FabricMixinPlugin implements IMixinConfigPlugin {
mixinClassName
// What these 2 regex's do is get the mod name that we are checking out of the mixinClassName
// Eg. "com.seibel.lod.mixins.mods.sodium.MixinSodiumChunkRenderer" turns into "sodium"
.replaceAll("^.*.mods.", "") // Replaces everything before the mods
.replaceAll("^.*mods.", "") // Replaces everything before the mods
.replaceAll("\\..*$", "") // Replaces everything after the mod name
);
}
@@ -21,7 +21,7 @@ public class ForgeMixinPlugin implements IMixinConfigPlugin {
mixinClassName
// What these 2 regex's do is get the mod name that we are checking out of the mixinClassName
// Eg. "com.seibel.lod.mixins.mods.sodium.MixinSodiumChunkRenderer" turns into "sodium"
.replaceAll("^.*.mods.", "") // Replaces everything before the mods
.replaceAll("^.*mods.", "") // Replaces everything before the mods
.replaceAll("\\..*$", "") // Replaces everything after the mod name
);
}