diff --git a/src/main/java/com/terraformersmc/modmenu/mixin/MixinTitleScreen.java b/src/main/java/com/terraformersmc/modmenu/mixin/MixinTitleScreen.java index 0a387e47..42f19d40 100644 --- a/src/main/java/com/terraformersmc/modmenu/mixin/MixinTitleScreen.java +++ b/src/main/java/com/terraformersmc/modmenu/mixin/MixinTitleScreen.java @@ -55,7 +55,7 @@ private void onInit(CallbackInfo ci) { buttons.set(i, new ModMenuButtonWidget(MODS, button.x, button.y, button.getWidth(), ((AccessorButtonWidget) button).getHeight(), ModMenuApi.createModsButtonText())); } else { if (ModMenuConfig.MODS_BUTTON_STYLE.getValue() == ModMenuConfig.TitleMenuButtonStyle.SHRINK) { - ((AccessorButtonWidget) button).setWidth(98); + button.setWidth(98); } modsButtonIndex = i + 1; if (button.visible) {