File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/illegals/items
AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/illegals/items Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 4646import java .time .Duration ;
4747import java .util .Arrays ;
4848import java .util .HashSet ;
49+ import java .util .Map ;
4950import java .util .Set ;
5051import java .util .function .Function ;
5152import java .util .stream .Collectors ;
@@ -181,6 +182,10 @@ public void disable() {
181182 HandlerList .unregisterAll (this );
182183 optionalListeners .forEach (HandlerList ::unregisterAll );
183184 optionalListeners .clear ();
185+ for (Map .Entry <Class <? extends Event >, ExpiringSet <Object >> entry : listenerCooldowns .asMap ().entrySet ()) {
186+ entry .getValue ().clear ();
187+ entry .getValue ().cleanUp ();
188+ }
184189 listenerCooldowns .invalidateAll ();
185190 listenerCooldowns .cleanUp ();
186191 }
Original file line number Diff line number Diff line change 4646import java .time .Duration ;
4747import java .util .Arrays ;
4848import java .util .HashSet ;
49+ import java .util .Map ;
4950import java .util .Set ;
5051import java .util .function .Function ;
5152import java .util .stream .Collectors ;
@@ -180,6 +181,10 @@ public void disable() {
180181 HandlerList .unregisterAll (this );
181182 optionalListeners .forEach (HandlerList ::unregisterAll );
182183 optionalListeners .clear ();
184+ for (Map .Entry <Class <? extends Event >, ExpiringSet <Object >> entry : listenerCooldowns .asMap ().entrySet ()) {
185+ entry .getValue ().clear ();
186+ entry .getValue ().cleanUp ();
187+ }
183188 listenerCooldowns .invalidateAll ();
184189 listenerCooldowns .cleanUp ();
185190 }
You can’t perform that action at this time.
0 commit comments