diff --git a/src/main/java/net/minestom/server/entity/EntityView.java b/src/main/java/net/minestom/server/entity/EntityView.java index 967517978..f9cc581d4 100644 --- a/src/main/java/net/minestom/server/entity/EntityView.java +++ b/src/main/java/net/minestom/server/entity/EntityView.java @@ -96,7 +96,8 @@ final class EntityView { public void forManuals(@NotNull Consumer consumer) { synchronized (mutex) { - this.manualViewers.forEach(consumer); + Set manualViewersCopy = Set.copyOf(this.manualViewers); + manualViewersCopy.forEach(consumer); } }