Skip to content

Commit

Permalink
Revert commit
Browse files Browse the repository at this point in the history
  • Loading branch information
StavWasPlayZ committed Aug 6, 2023
1 parent 084722a commit 951f0df
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,15 @@ public abstract class AbstractInstrumentScreen extends Screen {

@SuppressWarnings("resource")
public int getNoteSize() {
return switch (Minecraft.getInstance().options.guiScale().get()) {
final int guiScale = Minecraft.getInstance().options.guiScale().get();

return switch (guiScale) {
case 0 -> 40;
case 1 -> 35;
case 2 -> 46;
case 3 -> 48;
default -> 40;
case 4 -> 41;
default -> guiScale * 18;
};
}

Expand Down

0 comments on commit 951f0df

Please sign in to comment.