forked from Clones/Controlify
🐛 Fix mixin remap error on runtime
This commit is contained in:
@ -13,12 +13,12 @@ import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
@Mixin(YACLScreen.CategoryTab.class)
|
||||
@Mixin(value = YACLScreen.CategoryTab.class, remap = false)
|
||||
public class YACLScreenCategoryTabMixin {
|
||||
@Shadow @Final private Button saveFinishedButton;
|
||||
|
||||
@Inject(method = "<init>", at = @At("RETURN"))
|
||||
private void onConstructCategory(YACLScreen this$0, ConfigCategory category, CallbackInfo ci) {
|
||||
private void onConstructCategory(YACLScreen parentClassThis, ConfigCategory category, CallbackInfo ci) {
|
||||
ButtonGuideApi.addGuideToButtonBuiltin(saveFinishedButton, bindings -> bindings.GUI_ABSTRACT_ACTION_1, ButtonRenderPosition.TEXT, ButtonGuidePredicate.ALWAYS);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user