Skip to content

Commit da0d7cd

Browse files
committed
Temporary "fix" for #363
Significantly reduce the chances of it happening by trying to avoid parsing chunk tasks while ticking. It may still happen.
1 parent 8bde0ad commit da0d7cd

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
3+
Date: Thu, 29 May 2025 05:26:23 -0700
4+
Subject: [PATCH] Temporary "fix" for
5+
https://github.com/PaperMC/Folia/issues/363
6+
7+
Significantly reduce the chances of it happening
8+
by trying to avoid parsing chunk tasks while ticking. It may
9+
still happen.
10+
11+
diff --git a/net/minecraft/server/level/ServerChunkCache.java b/net/minecraft/server/level/ServerChunkCache.java
12+
index 357d81d42f187fb1c52584e6c9cfe611fe755aba..977fefea7f81d69b40dca46f72b9629f8c491c44 100644
13+
--- a/net/minecraft/server/level/ServerChunkCache.java
14+
+++ b/net/minecraft/server/level/ServerChunkCache.java
15+
@@ -180,7 +180,7 @@ public class ServerChunkCache extends ChunkSource implements ca.spottedleaf.moon
16+
17+
// call mid-tick tasks for chunk system
18+
if ((i & 7) == 0) {
19+
- ((ca.spottedleaf.moonrise.patches.chunk_system.server.ChunkSystemMinecraftServer)this.level.getServer()).moonrise$executeMidTickTasks();
20+
+ //((ca.spottedleaf.moonrise.patches.chunk_system.server.ChunkSystemMinecraftServer)this.level.getServer()).moonrise$executeMidTickTasks(); // Folia - TODO restore this
21+
continue;
22+
}
23+
}

0 commit comments

Comments
 (0)