YetAnotherConfigLib

YetAnotherConfigLib

13M Downloads

Strange NoSuchMethodError when adding a custom controller widget

KabanFriends opened this issue ยท 0 comments

commented

My mod adds a custom controller widget to have a custom button in the config menu. However when I click on the button, nothing happens.
Upon further investigating via temporary mixin to trace where it's failing, there seems to be a weird bug where my mod does not recognize some of the methods in YACL.

java.lang.NoSuchMethodError: 'boolean io.github.kabanfriends.craftgr.config.controller.RadioStateController$Element.mouseClicked(double, double, int)'

This obviously is false as RadioStateController$Element extends ControllerWidget which extends AbstractWidget which implements GuiEventHandler.
Is there any correct way to implement a custom controller widget so that this error does not happen?