-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to Enhance Thread Safety - Replaced ArrayList with ConcurrentHashMap for timeBasedScanLocations to ensure thread-safe operations in a multi-threaded environment. - Updated levelTick method to use iterator-based removal, enhancing safety and efficiency during concurrent modifications. - Modified breakHandler to directly add entries to ConcurrentHashMap, streamlining thread-safe updates. These changes address potential ConcurrentModificationExceptions and improve overall performance and stability in server environments. This was done as I was getting daily ConcurrentModificationException crashes from the server, caused by this mod
- Loading branch information
1 parent
23ee420
commit a778c55
Showing
1 changed file
with
27 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters