You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/ca/spottedleaf/starlight/mixin/common/lightengine/ThreadedLevelLightEngineMixin.java
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@
32
32
33
33
importjava.util.concurrent.CompletableFuture;
34
34
importjava.util.concurrent.atomic.AtomicLong;
35
+
importjava.util.function.Consumer;
35
36
importjava.util.function.Supplier;
36
37
37
38
@Mixin(ThreadedLevelLightEngine.class)
@@ -67,7 +68,7 @@ private void queueTaskForSection(final int chunkX, final int chunkY, final int c
67
68
return;
68
69
}
69
70
70
-
if (ChunkSystemHooks.isNonFullTicket() && center.getPersistedStatus() != ChunkStatus.FULL) { // TODO check if getHighestGeneratedStatus() is a better idea
71
+
if (!ChunkSystemHooks.isNonFullTicket() && center.getPersistedStatus() != ChunkStatus.FULL) { // TODO check if getHighestGeneratedStatus() is a better idea
71
72
// do not keep chunk loaded, we are probably in a gen thread
72
73
// if we proceed to add a ticket the chunk will be loaded, which is not what we want (avoid cascading gen)
73
74
runnable.get();
@@ -106,7 +107,7 @@ private void queueTaskForSection(final int chunkX, final int chunkY, final int c
0 commit comments