Skip to content

Commit 7e2f521

Browse files
Add int to openKeyboardInVmouseMode for neoforge (#689)
1 parent 9f9675f commit 7e2f521

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/java/dev/isxander/controlify/mixins/feature/screenop/impl/elements/AbstractWidgetMixin.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,21 @@ public class AbstractWidgetMixin {
1717
value = "INVOKE",
1818
//? if >=1.21.9 {
1919
target = "Lnet/minecraft/client/gui/components/AbstractWidget;onClick(Lnet/minecraft/client/input/MouseButtonEvent;Z)V"
20-
//?} else {
20+
//?} elif fabric {
2121
/*target = "Lnet/minecraft/client/gui/components/AbstractWidget;onClick(DD)V"
22+
*///?} else {
23+
/*target = "Lnet/minecraft/client/gui/components/AbstractWidget;onClick(DDI)V"
2224
*///?}
2325
)
2426
)
2527
private boolean openKeyboardInVmouseMode(
2628
AbstractWidget instance,
2729
//? if >=1.21.9 {
2830
net.minecraft.client.input.MouseButtonEvent mouseButtonEvent, boolean doubleClick
29-
//?} else {
31+
//?} elif fabric {
3032
/*double x, double y
33+
*///?} else {
34+
/*double x, double y, int button
3135
*///?}
3236
) {
3337
Controlify controlify = Controlify.instance();

0 commit comments

Comments
 (0)