Skip to content

Commit 1027286

Browse files
committed
Fix ghost ingredient targets persisting when opening recipes gui
1 parent 7d7de25 commit 1027286

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Gui/src/main/java/mezz/jei/gui/input/handlers/DragRouter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public boolean completeDrag(Screen screen, UserInput input) {
4343
}
4444

4545
public void cancelDrag() {
46-
if (this.dragStartedCallback != null) {
47-
this.dragStartedCallback.handleDragCanceled();
48-
this.dragStartedCallback = null;
46+
for (IDragHandler handler : this.handlers) {
47+
handler.handleDragCanceled();
4948
}
49+
this.dragStartedCallback = null;
5050
}
5151
}

0 commit comments

Comments
 (0)