mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-08 11:50:36 +01:00
Remove distinct call
This commit is contained in:
parent
056f819cc8
commit
01e5be9454
@ -227,7 +227,7 @@ public final class ViewEngine {
|
|||||||
Stream<T> sharedInstanceStream = shared.stream().<List<T>>mapMulti((inst, consumer) -> {
|
Stream<T> sharedInstanceStream = shared.stream().<List<T>>mapMulti((inst, consumer) -> {
|
||||||
var ref = inst.getEntityTracker().references(lastPoint, range, target);
|
var ref = inst.getEntityTracker().references(lastPoint, range, target);
|
||||||
ref.forEach(consumer);
|
ref.forEach(consumer);
|
||||||
}).flatMap(Collection::stream).distinct();
|
}).flatMap(Collection::stream);
|
||||||
result = Stream.concat(result, sharedInstanceStream);
|
result = Stream.concat(result, sharedInstanceStream);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user