Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ private static LevelChunk toLevelChunk(Chunk chunk) {

private static void addTicket(ServerLevel serverLevel, int chunkX, int chunkZ) {
// Ensure chunk is definitely loaded before applying a ticket
io.papermc.paper.util.MCUtil.MAIN_EXECUTOR.execute(() -> serverLevel
TaskManager.taskManager().task(() -> serverLevel
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same Folia compatibility issue exists in other adapter versions (adapter-1_21_5, adapter-1_21_6, and adapter-1_21_9) where MCUtil.MAIN_EXECUTOR.execute is still used in the addTicket method. Consider applying this fix consistently across all affected adapters to ensure Folia compatibility throughout the codebase.

Suggested change
TaskManager.taskManager().task(() -> serverLevel
TaskManager.taskManager().sync(() -> serverLevel

Copilot uses AI. Check for mistakes.
.getChunkSource()
.addTicketWithRadius(ChunkHolderManager.UNLOAD_COOLDOWN, new ChunkPos(chunkX, chunkZ), 0));
}
Expand Down