Skip to content

Commit

Permalink
Fix humongous note buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
StavWasPlayZ committed Aug 6, 2023
1 parent 9de0c35 commit 084722a
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}

Expand Down

0 comments on commit 084722a

Please sign in to comment.