diff --git a/src/main/java/minicraft/entity/mob/Player.java b/src/main/java/minicraft/entity/mob/Player.java index 18d1874f6..eb19e5ed5 100644 --- a/src/main/java/minicraft/entity/mob/Player.java +++ b/src/main/java/minicraft/entity/mob/Player.java @@ -224,20 +224,20 @@ public void tick() { if (cooldowninfo > 0) cooldowninfo--; if (questExpanding > 0) questExpanding--; - if (input.getKey("potionEffects").down && cooldowninfo == 0) { + if (input.getKey("potionEffects").clicked && cooldowninfo == 0) { cooldowninfo = 10; showpotioneffects = !showpotioneffects; } - if (input.getKey("simpPotionEffects").down) { + if (input.getKey("simpPotionEffects").clicked) { simpPotionEffects = !simpPotionEffects; } - if (input.getKey("toggleHUD").down) { + if (input.getKey("toggleHUD").clicked) { renderGUI = !renderGUI; } - if (input.getKey("expandQuestDisplay").down) { + if (input.getKey("expandQuestDisplay").clicked) { questExpanding = 30; } diff --git a/src/main/java/minicraft/screen/QuestsDisplay.java b/src/main/java/minicraft/screen/QuestsDisplay.java index 7ac0f7801..1c136319c 100644 --- a/src/main/java/minicraft/screen/QuestsDisplay.java +++ b/src/main/java/minicraft/screen/QuestsDisplay.java @@ -183,7 +183,7 @@ public QuestsDisplay() { .setSelectable(true) .createMenu(), new Menu.Builder(false, 0, RelPos.LEFT) - .setPositioning(new Point(Screen.w / 2 - 8 * 11, 30), RelPos.RIGHT) + .setPositioning(new Point(Screen.w / 2 - 8 * (2 + Localization.getLocalized("minicraft.displays.quests.display.header.unlocked").length()), 30), RelPos.RIGHT) .setEntries(new StringEntry("minicraft.displays.quests.display.header.unlocked", Color.GRAY)) .setSelectable(false) .createMenu(),