diff --git a/.gitignore b/.gitignore index 09cd281f..d86ff2a3 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ bin/ # fabric run/ +.kotlin diff --git a/src/main/java/anticope/rejects/mixin/meteor/ModuleMixin.java b/src/main/java/anticope/rejects/mixin/meteor/ModuleMixin.java index 2cc1eb41..5e4fa501 100644 --- a/src/main/java/anticope/rejects/mixin/meteor/ModuleMixin.java +++ b/src/main/java/anticope/rejects/mixin/meteor/ModuleMixin.java @@ -18,7 +18,10 @@ public class ModuleMixin { @Mutable @Shadow public String title; - @Inject(method = "", at = @At("TAIL")) + @Inject( + method = "(Lmeteordevelopment/meteorclient/systems/modules/Category;Ljava/lang/String;Ljava/lang/String;)V", + at = @At("TAIL") + ) private void onInit(Category category, String name, String description, CallbackInfo info) { if (RejectsConfig.get().duplicateModuleNames) { this.name = RejectsUtils.getModuleName(name);