isXander / YetAnotherConfigLib

YetAnotherConfigLib (yacl) is just that. A builder-based configuration library for Minecraft.
GNU Lesser General Public License v3.0
97 stars 41 forks source link

Strange NoSuchMethodError when adding a custom controller widget #216

Open KabanFriends opened 1 month ago

KabanFriends commented 1 month ago

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?