From 084722a3dae64d161ec5c592b389165ced7d6f53 Mon Sep 17 00:00:00 2001 From: StavWasPlayZ Date: Sun, 6 Aug 2023 14:55:53 +0300 Subject: [PATCH] Fix humongous note buttons --- .../instrument/partial/AbstractInstrumentScreen.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/AbstractInstrumentScreen.java b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/AbstractInstrumentScreen.java index a6fe5c3..035cafa 100644 --- a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/AbstractInstrumentScreen.java +++ b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/AbstractInstrumentScreen.java @@ -37,15 +37,11 @@ public abstract class AbstractInstrumentScreen extends Screen { @SuppressWarnings("resource") public int getNoteSize() { - final int guiScale = Minecraft.getInstance().options.guiScale().get(); - - return switch (guiScale) { - case 0 -> 40; + return switch (Minecraft.getInstance().options.guiScale().get()) { case 1 -> 35; case 2 -> 46; case 3 -> 48; - case 4 -> 41; - default -> guiScale * 18; + default -> 40; }; }