aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThatGravyBoat <ThatGravyBoat@users.noreply.github.com>2021-07-15 08:52:56 +0000
committerGitHub Action <actions@github.com>2021-07-15 08:52:56 +0000
commitdb6b8d152adf270035a274046afc6220a85eadb2 (patch)
tree524b0787fb8f9991eea95f059f8d8a59936332e3
parentedb756fb816dd196b2774d081f2061a14a86527b (diff)
downloadSkyblockHud-Death-Defied-db6b8d152adf270035a274046afc6220a85eadb2.tar.gz
SkyblockHud-Death-Defied-db6b8d152adf270035a274046afc6220a85eadb2.tar.bz2
SkyblockHud-Death-Defied-db6b8d152adf270035a274046afc6220a85eadb2.zip
Prettified Code!
-rw-r--r--src/main/java/com/thatgravyboat/skyblockhud/core/util/render/TextRenderUtils.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/thatgravyboat/skyblockhud/core/util/render/TextRenderUtils.java b/src/main/java/com/thatgravyboat/skyblockhud/core/util/render/TextRenderUtils.java
index 1fc09c2..b8d2551 100644
--- a/src/main/java/com/thatgravyboat/skyblockhud/core/util/render/TextRenderUtils.java
+++ b/src/main/java/com/thatgravyboat/skyblockhud/core/util/render/TextRenderUtils.java
@@ -63,9 +63,7 @@ public class TextRenderUtils {
int tooltipX = mouseX + 12;
if (tooltipX + tooltipTextWidth + 4 > screenWidth) {
tooltipX = mouseX - 16 - tooltipTextWidth;
- if (
- tooltipX < 4
- ) { // if the tooltip doesn't fit on the screen
+ if (tooltipX < 4) { // if the tooltip doesn't fit on the screen
if (mouseX > screenWidth / 2) {
tooltipTextWidth = mouseX - 12 - 8;
} else {