aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2023-02-06 14:43:27 +0000
committerGitHub <noreply@github.com>2023-02-06 15:43:27 +0100
commit0294a87dc03f4d9b13022079b808e234b9a7545b (patch)
tree8a342e9d7de3d9dee59ce7c3e3fc86d420d686ba /src/main/java
parent405b8b4804af7dfc1f4f53d947944980e203a88d (diff)
downloadNotEnoughUpdates-0294a87dc03f4d9b13022079b808e234b9a7545b.tar.gz
NotEnoughUpdates-0294a87dc03f4d9b13022079b808e234b9a7545b.tar.bz2
NotEnoughUpdates-0294a87dc03f4d9b13022079b808e234b9a7545b.zip
Fix Gui scale setting freaking out when your gui scale is set to 5x or higher (#596)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
index 0424e311..d5abcb77 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
@@ -186,7 +186,7 @@ public class Utils {
}
int newScale = guiScales.size() > 0
- ? Math.max(0, Math.min(4, guiScales.peek()))
+ ? Math.max(0, guiScales.peek())
: Minecraft.getMinecraft().gameSettings.guiScale;
if (newScale == 0) newScale = Minecraft.getMinecraft().gameSettings.guiScale;