Skip to content

Commit

Permalink
Fix lang key for the texture pack button.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSVK12 committed Dec 15, 2023
1 parent f9886d9 commit ddd5f09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ mod_name=modmenu-bta

bta_version=7.1-pre1
loader_version=0.14.19-babric.2-bta
halplibe_version=2.8.0
halplibe_version=3.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class MixinGuiMainMenu extends GuiScreen {
public void modmenu$drawMenuButton(CallbackInfo info) {
I18n i18n = I18n.getInstance();
GuiButton texturePackButton = this.controlList.get(2);
texturePackButton.displayString = new Random().nextInt(1000) == 0 ? "Twin Peaks" : i18n.translateKey("menu.mods");
texturePackButton.displayString = new Random().nextInt(1000) == 0 ? "Twin Peaks" : i18n.translateKey("gui.main_menu.button.texture_packs");
int newWidth = ((GuiButtonAccessor) texturePackButton).getWidth() / 2 - 1;
((GuiButtonAccessor) texturePackButton).setWidth(newWidth);
String buttonText = i18n.translateKey("modmenu.title") + " " + i18n.translateKeyAndFormat("modmenu.loaded", ModMenu.getFormattedModCount());
Expand Down

0 comments on commit ddd5f09

Please sign in to comment.