aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-03 19:21:56 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-03 19:21:56 +0100
commitc65404209dbd59f8444dc34a35012716d68276c6 (patch)
treeb18819aa84c0d278f231c350f4bc389b7f98c3c9 /src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt
parent27b12a2521bf9f3576814d600589f1e31e0975d8 (diff)
downloadskyhanni-c65404209dbd59f8444dc34a35012716d68276c6.tar.gz
skyhanni-c65404209dbd59f8444dc34a35012716d68276c6.tar.bz2
skyhanni-c65404209dbd59f8444dc34a35012716d68276c6.zip
code cleanup
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt
index 1269ec005..c485ec20b 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/GuiRenderUtils.kt
@@ -164,9 +164,8 @@ object GuiRenderUtils {
drawTooltip(textLines, mouseX, mouseY, screenHeight, Minecraft.getMinecraft().fontRendererObj)
}
- fun isPointInRect(x: Int, y: Int, left: Int, top: Int, width: Int, height: Int): Boolean {
- return left <= x && x < left + width && top <= y && y < top + height
- }
+ fun isPointInRect(x: Int, y: Int, left: Int, top: Int, width: Int, height: Int) =
+ left <= x && x < left + width && top <= y && y < top + height
fun drawProgressBar(x: Int, y: Int, barWidth: Int, progress: Float) {
GuiScreen.drawRect(x, y, x + barWidth, y + 6, 0xFF43464B.toInt())
@@ -285,4 +284,4 @@ object GuiRenderUtils {
renderItemStack(item, x, y)
GuiScreen.drawRect(x, y, x + 16, y + 16, colour)
}
-} \ No newline at end of file
+}