ScreenInputDelegate: Call MOUSE_DRAGGED_POST correctly

It was erroneously calling the PRE event twice.
This commit is contained in:
Ivan Molodetskikh
2021-12-15 19:27:12 +03:00
committed by shedaniel
parent 911175d925
commit 83a4ca436e

View File

@@ -41,7 +41,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).isPresent();
return ClientScreenInputEvent.MOUSE_DRAGGED_POST.invoker().mouseDragged(Minecraft.getInstance(), parent, d, e, i, f, g).isPresent();
}
@Override