Skip to content

Commit 8096a5a

Browse files
committed
fix: sync lighting before sending to client
1 parent 34d313d commit 8096a5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

c2me-notickvd/src/main/java/com/ishland/c2me/notickvd/mixin/MixinServerAccessibleChunkSending.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public CompletionStage<Void> upgradeToThis(ChunkLoadingContext context, Cancella
119119
private static void sendChunkToPlayer(ServerChunkLoadingManager tacs, ItemHolder<ChunkPos, ChunkState, ChunkLoadingContext, NewChunkHolderVanillaInterface> holder) {
120120
final WorldChunk worldChunk = (WorldChunk) holder.getItem().get().chunk();
121121
NewChunkHolderVanillaInterface holderVanillaInterface = holder.getUserData().get();
122+
holderVanillaInterface.combinePostProcessingFuture(((IThreadedAnvilChunkStorage) tacs).getLightingProvider().enqueue(holder.getKey().x, holder.getKey().z));
122123
CompletableFuture<?> completableFuturexx = holderVanillaInterface.getPostProcessingFuture();
123124
if (completableFuturexx.isDone()) {
124125
((IThreadedAnvilChunkStorage) tacs).invokeSendToPlayers(holderVanillaInterface, worldChunk);

0 commit comments

Comments
 (0)