aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authornopo <nopotheemail@gmail.com>2023-02-14 19:56:50 +1100
committernopo <nopotheemail@gmail.com>2023-02-14 19:56:50 +1100
commit21e8f5833176828e31a57e0a9c428867a6a1c1fd (patch)
tree6b313c133942222ac803d747a2aa534e8198cfde /src/main/java
parente97efba693a8f1c58947233701401553eb1cf9d4 (diff)
downloadNotEnoughUpdates-21e8f5833176828e31a57e0a9c428867a6a1c1fd.tar.gz
NotEnoughUpdates-21e8f5833176828e31a57e0a9c428867a6a1c1fd.tar.bz2
NotEnoughUpdates-21e8f5833176828e31a57e0a9c428867a6a1c1fd.zip
Fixed some guis going no
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java4
1 files changed, 2 insertions, 2 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 80be41f7..bd3693a0 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java
@@ -1572,8 +1572,8 @@ public class Utils {
}
}
TooltipTextScrolling.handleTextLineRendering(textLines);
- ScaledResolution scaledResolution = Utils.pushGuiScale(NotEnoughUpdates.INSTANCE.config.tooltipTweaks.guiScale);
if (NotEnoughUpdates.INSTANCE.config.tooltipTweaks.guiScale != 0) {
+ ScaledResolution scaledResolution = Utils.pushGuiScale(NotEnoughUpdates.INSTANCE.config.tooltipTweaks.guiScale);
mouseX = Mouse.getX() * scaledResolution.getScaledWidth() / Minecraft.getMinecraft().displayWidth;
mouseY = scaledResolution.getScaledHeight() -
@@ -1780,7 +1780,7 @@ public class Utils {
GlStateManager.enableDepth();
RenderHelper.enableStandardItemLighting();
GlStateManager.enableRescaleNormal();
- Utils.pushGuiScale(0);
+ if (NotEnoughUpdates.INSTANCE.config.tooltipTweaks.guiScale != 0) Utils.pushGuiScale(0);
}
GlStateManager.disableLighting();
}