From 1feb8c84d211a93099fd1af649a35a61fb636866 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 8 Aug 2021 00:31:39 +0200 Subject: [PATCH] Fixed hud page numbers starting at 0 rather than 1 --- .../com/minelittlepony/unicopia/client/KeyBindingsHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/client/KeyBindingsHandler.java b/src/main/java/com/minelittlepony/unicopia/client/KeyBindingsHandler.java index a7bbde7a..bdb8eb91 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/KeyBindingsHandler.java +++ b/src/main/java/com/minelittlepony/unicopia/client/KeyBindingsHandler.java @@ -95,7 +95,7 @@ public class KeyBindingsHandler { private void changePage(MinecraftClient client, long max, int sigma) { page += sigma; client.getSoundManager().play(PositionedSoundInstance.master(SoundEvents.UI_BUTTON_CLICK, 1.75F + (0.25F * sigma))); - UHud.INSTANCE.setMessage(new TranslatableText("gui.unicopia.page_num", page, max)); + UHud.INSTANCE.setMessage(new TranslatableText("gui.unicopia.page_num", page + 1, max + 1)); } private PressedState checkPressed(KeyBinding binding) {