Skip to content

Commit

Permalink
🐛Safe list
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusSlover committed May 6, 2024
1 parent 4f669fe commit e7c94c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/marcusslover/plus/lib/item/Menu.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void debug(String message) {
* All current menu viewers will have their menu updated.
*/
public void performUpdate() {
this.canvasMap.keySet().forEach(uuid -> performUpdate(uuid, false, null)); // update all viewers
this.canvasMap.keySet().stream().toList().forEach(uuid -> performUpdate(uuid, false, null)); // update all viewers
}

/**
Expand All @@ -71,7 +71,7 @@ public void performUpdate() {
* @param ctx The context of the update.
*/
public void performUpdate(boolean force, @Nullable Menu.UpdateContext ctx) {
this.canvasMap.keySet().forEach(uuid -> performUpdate(uuid, force, ctx)); // update all viewers
this.canvasMap.keySet().stream().toList().forEach(uuid -> performUpdate(uuid, force, ctx)); // update all viewers
}

/**
Expand Down

0 comments on commit e7c94c6

Please sign in to comment.