Skip to content

Commit

Permalink
replace call to ButtonWidget:getWidth with call to accessor method
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceWalkerRS committed Dec 23, 2023
1 parent 219d2c9 commit 6975706
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private void onInit(CallbackInfo ci) {
}
if (button.id == ONLINE) {
if (ModMenuConfig.MODS_BUTTON_STYLE.getValue() == ModMenuConfig.TitleMenuButtonStyle.REPLACE_REALMS) {
buttons.set(i, new ModMenuButtonWidget(MODS, button.x, button.y, button.getWidth(), ((AccessorButtonWidget) button).getHeight(), ModMenuApi.createModsButtonText()));
buttons.set(i, new ModMenuButtonWidget(MODS, button.x, button.y, ((AccessorButtonWidget) button).getWidth(), ((AccessorButtonWidget) button).getHeight(), ModMenuApi.createModsButtonText()));
} else {
if (ModMenuConfig.MODS_BUTTON_STYLE.getValue() == ModMenuConfig.TitleMenuButtonStyle.SHRINK) {
((AccessorButtonWidget) button).setWidth(98);
Expand Down

0 comments on commit 6975706

Please sign in to comment.