We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f618ea commit 07063feCopy full SHA for 07063fe
1 file changed
invui/src/main/java/xyz/xenondevs/invui/window/WindowManager.java
@@ -31,7 +31,7 @@ public class WindowManager implements Listener {
31
32
private WindowManager() {
33
Bukkit.getPluginManager().registerEvents(this, InvUI.getInstance().getPlugin());
34
- InvUI.getInstance().addDisableHandler(() -> windows.values().forEach(window -> window.remove(true)));
+ InvUI.getInstance().addDisableHandler(() -> new HashSet<>(windows.values()).forEach(window -> window.remove(true)));
35
}
36
37
/**
0 commit comments