mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-27 23:47:09 +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
1 changed files with 6 additions and 2 deletions
|
@ -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 a new issue