Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: synchronize questStepPanelList (#1866)
* fix: synchronize questStepPanelList Since we create/add to it from AWT thread but have to iterate & access its stuff from client thread, this seems like a reasonable solution * fix: clear questStepPanelList before adding panels from a new quest Before this, we kept adding and adding more panels, making the iteration over steps slower and slower * Make use of CopyOnWriteArray instead This is automatically safe for iterations (which Collections.synchronizedList is not) and it makes more sense for our use case given the rarity of our writes
- Loading branch information