From ddd5f0901756ce1f38c5b105fa6e28c694f34264 Mon Sep 17 00:00:00 2001 From: MartinSVK12 <37455793+MartinSVK12@users.noreply.github.com> Date: Fri, 15 Dec 2023 23:17:52 +0100 Subject: [PATCH] Fix lang key for the texture pack button. --- gradle.properties | 2 +- .../io/github/prospector/modmenu/mixin/MixinGuiMainMenu.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 33ec41ff..701bd378 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/src/main/java/io/github/prospector/modmenu/mixin/MixinGuiMainMenu.java b/src/main/java/io/github/prospector/modmenu/mixin/MixinGuiMainMenu.java index 5a110b2f..8b01fcb4 100644 --- a/src/main/java/io/github/prospector/modmenu/mixin/MixinGuiMainMenu.java +++ b/src/main/java/io/github/prospector/modmenu/mixin/MixinGuiMainMenu.java @@ -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());