Revert "Parallel light updates"

Caused a crash, likely related to the use of weak references

This reverts commit c68b2bbf91.
This commit is contained in:
Jozufozu 2021-09-14 13:18:55 -07:00
parent 261b901e80
commit 613c933206

View file

@ -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) {