浏览代码

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;
                 return true;
             if (parent.mouseDragged(d, e, i, f, g))
             if (parent.mouseDragged(d, e, i, f, g))
                 return true;
                 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
         @Override