When another mod changes the y-value of the singleplayer button (or completely replaces the main menu) your buttons don't account these changes. THis can easily be fixed by replacing this line with simply getting the y value from the original button.
int buttonY = event.getButtonList().get(0).y
for now I have implemented a manual fix for your mod, but it'd be nice to not require that work on my end.