Skip to content

Commit

Permalink
Fix #2606 crash on handleGuiChange
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Dec 25, 2021
1 parent 41119d6 commit 77f06ef
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -116,8 +116,10 @@ public void handleMouseClickedOut(InputConstants.Key key) {
}

public void handleGuiChange() {
Set<InputConstants.Key> keys = this.mousedDown.keySet();
keys.forEach(this::handleMouseClickedOut);
Set<InputConstants.Key> keys = Set.copyOf(this.mousedDown.keySet());
for (InputConstants.Key key : keys) {
handleMouseClickedOut(key);
}
handleDragCanceled();
}

Expand Down

0 comments on commit 77f06ef

Please sign in to comment.