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 GitHub
parent 11ef83f9de
commit 8e912bc10b

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