Explorar el Código

ScreenInputDelegate: Call MOUSE_DRAGGED_POST correctly

It was erroneously calling the PRE event twice.
Ivan Molodetskikh hace 3 años
padre
commit
2e2ecc366d

+ 1 - 1
fabric/src/main/java/me/shedaniel/architectury/impl/fabric/ScreenInputDelegate.java

@@ -43,7 +43,7 @@ public interface ScreenInputDelegate {
                 return true;
             if (parent.mouseDragged(d, e, i, f, g))
                 return true;
-            return ClientScreenInputEvent.MOUSE_DRAGGED_PRE.invoker().mouseDragged(Minecraft.getInstance(), parent, d, e, i, f, g) != InteractionResult.PASS;
+            return ClientScreenInputEvent.MOUSE_DRAGGED_POST.invoker().mouseDragged(Minecraft.getInstance(), parent, d, e, i, f, g) != InteractionResult.PASS;
         }
         
         @Override