Fix mixin mismatch descriptor

This commit is contained in:
ruriyoshinova
2024-10-25 23:37:40 +08:00
committed by SByte
parent fef076ad20
commit 5049f5fbeb

View File

@@ -19,7 +19,7 @@ public class ModuleMixin {
@Mutable @Shadow public String title; @Mutable @Shadow public String title;
@Inject(method = "<init>", at = @At("TAIL")) @Inject(method = "<init>", at = @At("TAIL"))
private void onInit(Category category, String name, String description, CallbackInfo info) { private void onInit(Category category, String name, String description, String[] aliases, CallbackInfo info) {
if (RejectsConfig.get().duplicateModuleNames) { if (RejectsConfig.get().duplicateModuleNames) {
this.name = RejectsUtils.getModuleName(name); this.name = RejectsUtils.getModuleName(name);
this.title = Utils.nameToTitle(this.name); this.title = Utils.nameToTitle(this.name);