aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MButton.java
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2020-12-30 13:57:53 +0900
committersyeyoung <cyong06@naver.com>2020-12-30 13:57:53 +0900
commit00c92d34b5373441f798da15341d5606693be684 (patch)
tree652e3bc9733b955d97fab9ae453a709330ebec17 /src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MButton.java
parent0ab8c554c9fa40aa7830aa1ff614673562bb21a4 (diff)
downloadSkyblock-Dungeons-Guide-00c92d34b5373441f798da15341d5606693be684.tar.gz
Skyblock-Dungeons-Guide-00c92d34b5373441f798da15341d5606693be684.tar.bz2
Skyblock-Dungeons-Guide-00c92d34b5373441f798da15341d5606693be684.zip
use clip
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MButton.java')
-rwxr-xr-xsrc/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MButton.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MButton.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MButton.java
index 18aeef41..0334895f 100755
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MButton.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/elements/MButton.java
@@ -48,7 +48,7 @@ public class MButton extends MPanel {
@Override
public void mouseClicked(int absMouseX, int absMouseY, int relMouseX, int relMouseY, int mouseButton) {
- if (onActionPerformed != null && new Rectangle(new Point(0,0),getSize()).contains(relMouseX, relMouseY))
+ if (onActionPerformed != null && lastAbsClip.contains(absMouseX, absMouseY))
onActionPerformed.run();
}
}