mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Concurrent Modification Fix (#73)
Co-authored-by: iam <iam4722202468@users.noreply.github.com>
This commit is contained in:
parent
e146a9393e
commit
eaf3d5311c
@ -96,7 +96,8 @@ final class EntityView {
|
||||
|
||||
public void forManuals(@NotNull Consumer<Player> consumer) {
|
||||
synchronized (mutex) {
|
||||
this.manualViewers.forEach(consumer);
|
||||
Set<Player> manualViewersCopy = Set.copyOf(this.manualViewers);
|
||||
manualViewersCopy.forEach(consumer);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user