diff --git a/src/main/java/com/mrcrayfish/device/api/app/component/Button.java b/src/main/java/com/mrcrayfish/device/api/app/component/Button.java index 7f6261b6c..f410f0ec3 100644 --- a/src/main/java/com/mrcrayfish/device/api/app/component/Button.java +++ b/src/main/java/com/mrcrayfish/device/api/app/component/Button.java @@ -294,7 +294,7 @@ protected void playClickSound(SoundHandler handler) handler.playSound(PositionedSoundRecord.getMasterRecord(SoundEvents.UI_BUTTON_CLICK, 1.0F)); } - protected boolean isInside(int mouseX, int mouseY) + public boolean isInside(int mouseX, int mouseY) { return mouseX >= this.xPosition && mouseY >= this.yPosition && mouseX < this.xPosition + this.width && mouseY < this.yPosition + this.height; }