Skip to content

Commit 857aa1f

Browse files
committed
fix: prevent stalling when syncing player tickets
Cherry-picked from 18b450d
1 parent 7b98b97 commit 857aa1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c2me-rewrites-chunk-system/src/main/java/com/ishland/c2me/rewrites/chunksystem/mixin/MixinChunkTicketManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private int fakeLevel(ChunkHolder instance) {
3131
@WrapOperation(method = "<init>", at = @At(value = "NEW", target = "(Lnet/minecraft/util/thread/TaskExecutor;Ljava/util/concurrent/Executor;I)Lnet/minecraft/server/world/ThrottledChunkTaskScheduler;"))
3232
private ThrottledChunkTaskScheduler syncPlayerTickets(TaskExecutor<Runnable> executor, Executor dispatchExecutor, int maxConcurrentChunks, Operation<ThrottledChunkTaskScheduler> original, Executor workerExecutor, Executor mainThreadExecutor) {
3333
if (Config.syncPlayerTickets) {
34-
return original.call(executor, mainThreadExecutor, maxConcurrentChunks); // improve player ticket consistency
34+
return original.call(executor, (Executor) Runnable::run, maxConcurrentChunks); // improve player ticket consistency
3535
} else {
3636
return original.call(executor, dispatchExecutor, maxConcurrentChunks);
3737
}

0 commit comments

Comments
 (0)