aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorisxander <xander@isxander.dev>2024-05-27 15:29:56 +0100
committerisxander <xander@isxander.dev>2024-05-27 15:29:56 +0100
commit41253828df7c2066b5df29a32aa8e512f34ad85a (patch)
tree43d7c2c591a8d2112a06d6916ce3f55ffc9889da /src
parent41fd559c4e8c4605b9c74d66f19c92fd561df5b3 (diff)
downloadYetAnotherConfigLib-41253828df7c2066b5df29a32aa8e512f34ad85a.tar.gz
YetAnotherConfigLib-41253828df7c2066b5df29a32aa8e512f34ad85a.tar.bz2
YetAnotherConfigLib-41253828df7c2066b5df29a32aa8e512f34ad85a.zip
Fix kotlin sourceset not being included due to broken stonecutter
Diffstat (limited to 'src')
-rw-r--r--src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java2
-rw-r--r--src/main/java/dev/isxander/yacl3/gui/OptionListWidget.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java b/src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java
index abe1107..85b86bb 100644
--- a/src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java
+++ b/src/main/java/dev/isxander/yacl3/gui/ElementListWidgetExt.java
@@ -82,10 +82,10 @@ public class ElementListWidgetExt<E extends ElementListWidgetExt.Entry<E>> exten
/*? if >1.20.1 { */
@Override
+ /*?}*/
protected boolean isValidMouseClick(int button) {
return button == InputConstants.MOUSE_BUTTON_LEFT || button == InputConstants.MOUSE_BUTTON_RIGHT;
}
- /*?}*/
@Override
public boolean mouseClicked(double mouseX, double mouseY, int button) {
diff --git a/src/main/java/dev/isxander/yacl3/gui/OptionListWidget.java b/src/main/java/dev/isxander/yacl3/gui/OptionListWidget.java
index 0b0d7f2..51f53b3 100644
--- a/src/main/java/dev/isxander/yacl3/gui/OptionListWidget.java
+++ b/src/main/java/dev/isxander/yacl3/gui/OptionListWidget.java
@@ -169,7 +169,7 @@ public class OptionListWidget extends ElementListWidgetExt<OptionListWidget.Entr
@Override
public boolean mouseDragged(double mouseX, double mouseY, int button, double deltaX, double deltaY) {
- if (this.getFocused() != null && this.isDragging() && isValidClickButton(button)) {
+ if (this.getFocused() != null && this.isDragging() && isValidMouseClick(button)) {
return this.getFocused().mouseDragged(mouseX, mouseY, button, deltaX, deltaY);
}
return super.mouseDragged(mouseX, mouseY, button, deltaX, deltaY);