소스 검색

ScreenInputDelegate: Call MOUSE_DRAGGED_POST correctly

It was erroneously calling the PRE event twice.
Ivan Molodetskikh 3 년 전
부모
커밋
2e2ecc366d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      fabric/src/main/java/me/shedaniel/architectury/impl/fabric/ScreenInputDelegate.java

+ 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