Fixed hud page numbers starting at 0 rather than 1

This commit is contained in:
Sollace 2021-08-08 00:31:39 +02:00
parent 830275c6ad
commit 1feb8c84d2

View file

@ -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) {