diff options
| author | Danielshe <shekwancheung0528@gmail.com> | 2019-11-01 15:13:34 +0800 |
|---|---|---|
| committer | Danielshe <shekwancheung0528@gmail.com> | 2019-11-01 15:13:43 +0800 |
| commit | a159e6b1d19b8b8d0051b10f614c5c04be2e55e1 (patch) | |
| tree | c3d3c0e54a5481f658427a573045587c04bf44c1 /src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java | |
| parent | 2ebc99aff27d26aee351ae5e71b148a98bfbf59e (diff) | |
| download | RoughlyEnoughItems-a159e6b1d19b8b8d0051b10f614c5c04be2e55e1.tar.gz RoughlyEnoughItems-a159e6b1d19b8b8d0051b10f614c5c04be2e55e1.tar.bz2 RoughlyEnoughItems-a159e6b1d19b8b8d0051b10f614c5c04be2e55e1.zip | |
Close #161
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java b/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java index 7a98f36f4..5f7ce117d 100644 --- a/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java +++ b/src/main/java/me/shedaniel/rei/gui/widget/ButtonWidget.java @@ -123,7 +123,7 @@ public abstract class ButtonWidget extends WidgetWithBounds { @Override public boolean mouseClicked(double mouseX, double mouseY, int button) { - if (bounds.contains(mouseX, mouseY) && enabled && button == 0) { + if (isMouseOver(mouseX, mouseY) && enabled && button == 0) { minecraft.getSoundManager().play(PositionedSoundInstance.master(SoundEvents.UI_BUTTON_CLICK, 1.0F)); onPressed(); return true; |
