From f7fd87b818bbb6ebf058dba2fad39733158b7e2b Mon Sep 17 00:00:00 2001 From: nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> Date: Fri, 29 Apr 2022 17:48:33 +0100 Subject: fix some stuffs --- src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/io/polyfrost/oneconfig/gui/elements/BasicElement.java') 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) { -- cgit