diff options
Diffstat (limited to 'src/main/java/io')
-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); |