aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java
diff options
context:
space:
mode:
authornextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-04-29 17:48:33 +0100
committernextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-04-29 17:48:33 +0100
commitf7fd87b818bbb6ebf058dba2fad39733158b7e2b (patch)
treedd523809204107cff7c926ed3775c6932fe05a83 /src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java
parentccec3f80c799b0127d7402201be63773916826bf (diff)
downloadOneConfig-f7fd87b818bbb6ebf058dba2fad39733158b7e2b.tar.gz
OneConfig-f7fd87b818bbb6ebf058dba2fad39733158b7e2b.tar.bz2
OneConfig-f7fd87b818bbb6ebf058dba2fad39733158b7e2b.zip
fix some stuffs
Diffstat (limited to 'src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java')
-rw-r--r--src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java b/src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java
index c4bab72..ef93a2a 100644
--- a/src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java
+++ b/src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java
@@ -41,7 +41,7 @@ public class BasicElement {
public void update(int x, int y) {
hovered = InputUtils.isAreaHovered(x - hitBoxX, y - hitBoxY, width + hitBoxX, height + hitBoxY);
- clicked = InputUtils.isClicked();
+ clicked = InputUtils.isClicked() && hovered;
if (hovered) {
if (clicked) {