diff options
author | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-09-11 01:30:08 +0300 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2021-09-11 01:30:08 +0300 |
commit | d4d5cbfabc5a3d36e9b2097792e13dab685658f7 (patch) | |
tree | 45e707e36f593705cbd4b1cdaf7ff15303708a51 /src/main/java | |
parent | 60283b69816b6792ab517089707cfe4d4a099e9a (diff) | |
download | LibGui-d4d5cbfabc5a3d36e9b2097792e13dab685658f7.tar.gz LibGui-d4d5cbfabc5a3d36e9b2097792e13dab685658f7.tar.bz2 LibGui-d4d5cbfabc5a3d36e9b2097792e13dab685658f7.zip |
Use vanilla translation key for "hotbar"
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/impl/client/NarrationMessages.java | 2 | ||||
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WPlayerInvPanel.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/impl/client/NarrationMessages.java b/src/main/java/io/github/cottonmc/cotton/gui/impl/client/NarrationMessages.java index bc9ee48..d76dba1 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/impl/client/NarrationMessages.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/impl/client/NarrationMessages.java @@ -6,7 +6,6 @@ import net.minecraft.text.TranslatableText; public final class NarrationMessages { public static final String ITEM_SLOT_TITLE_KEY = "widget.libgui.item_slot.narration.title"; public static final String LABELED_SLIDER_TITLE_KEY = "widget.libgui.labeled_slider.narration.title"; - public static final Text PLAYER_INVENTORY_HOTBAR = new TranslatableText("widget.libgui.player_inventory.narration.hotbar"); public static final Text SCROLL_BAR_TITLE = new TranslatableText("widget.libgui.scroll_bar.narration.title"); public static final String SLIDER_MESSAGE_KEY = "widget.libgui.slider.narration.title"; public static final Text SLIDER_USAGE = new TranslatableText("widget.libgui.slider.narration.usage"); @@ -25,5 +24,6 @@ public final class NarrationMessages { public static final Text COMPONENT_LIST_USAGE = new TranslatableText("narration.component_list.usage"); public static final Text INVENTORY = new TranslatableText("container.inventory"); public static final String SCREEN_POSITION_KEY = "narrator.position.screen"; + public static final Text HOTBAR = new TranslatableText("options.attack.hotbar"); } } diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WPlayerInvPanel.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WPlayerInvPanel.java index af4a159..d0fd001 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WPlayerInvPanel.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WPlayerInvPanel.java @@ -59,7 +59,7 @@ public class WPlayerInvPanel extends WPlainPanel { hotbar = new WItemSlot(playerInventory, 0, 9, 1, false) { @Override protected Text getNarrationName() { - return NarrationMessages.PLAYER_INVENTORY_HOTBAR; + return NarrationMessages.Vanilla.HOTBAR; } }; this.add(inv, 0, y); |