mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-10 20:45:59 +01:00
Revert "Parallel light updates"
Caused a crash, likely related to the use of weak references
This reverts commit c68b2bbf91
.
This commit is contained in:
parent
261b901e80
commit
613c933206
@ -99,7 +99,9 @@ public class LightUpdater {
|
||||
|
||||
ImmutableBox chunkBox = GridAlignedBB.from(SectionPos.of(sectionPos));
|
||||
|
||||
set.parallelStream().forEach(listener -> listener.onLightUpdate(provider, type, chunkBox));
|
||||
for (ILightUpdateListener listener : set) {
|
||||
listener.onLightUpdate(provider, type, chunkBox);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -116,7 +118,9 @@ public class LightUpdater {
|
||||
|
||||
set.removeIf(l -> l.status().shouldRemove());
|
||||
|
||||
set.parallelStream().forEach(listener -> listener.onLightPacket(provider, chunkX, chunkZ));
|
||||
for (ILightUpdateListener listener : set) {
|
||||
listener.onLightPacket(provider, chunkX, chunkZ);
|
||||
}
|
||||
}
|
||||
|
||||
public static long blockToSection(BlockPos pos) {
|
||||
|
Loading…
Reference in New Issue
Block a user