Skip to content

Commit 13735a6

Browse files
committed
Fixed TooManyHax Bug
1 parent 6a7b095 commit 13735a6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ Examples:
298298

299299
### TooManyHax Improved
300300
- Submenu of TooManyHax in the ClickUI/Navigator shows a list of toggleable hacks instead of needing to manually enter the name of each one via cmd.
301+
- Hacks disabled by TooManyHax will be removed from the ClickUI to declutter
301302

302303
![TooMany](https://i.imgur.com/I3cg7Qf.png)
303304

src/main/java/net/wurstclient/clickgui/ClickGui.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ else if(!window.isMinimized())
415415

416416
// remove by object to avoid index-based removal issues if the
417417
// windows list was modified concurrently
418+
if(!windows.contains(window))
419+
break;
420+
418421
windows.remove(window);
419422
windows.add(window);
420423
break;

0 commit comments

Comments
 (0)