diff --git a/.github/workflows/build-1204.yml b/.github/workflows/build-1204.yml index 46f76fbf1..6cd529c19 100644 --- a/.github/workflows/build-1204.yml +++ b/.github/workflows/build-1204.yml @@ -15,7 +15,7 @@ jobs: - name: Set up JDK uses: graalvm/setup-graalvm@main with: - java-version: 17 + java-version: 21 github-token: "${{ secrets.GITHUB_TOKEN }}" cache: gradle diff --git a/README.md b/README.md index 09337aa24..d2ddeed50 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,11 @@ - Discord: [`https://discord.gg/gfgAwdSEuM`](https://discord.gg/gfgAwdSEuM) - QQ: `2682173972` +## 📥 Download +You can find latest successful build in [GitHub Action](https://github.com/Winds-Studio/Leaf/actions) or stable build in [Releases](https://github.com/Winds-Studio/Leaf/releases) + +**Please note Java >= 21 is required.** + ## 📦 Building Building a Paperclip JAR for distribution: ```bash diff --git a/patches/server/0073-Ability-to-use-Virtual-Thread-for-async-scheduler.patch b/patches/server/0073-Ability-to-use-Virtual-Thread-for-async-scheduler.patch index 017b4c77d..f02df6cfd 100644 --- a/patches/server/0073-Ability-to-use-Virtual-Thread-for-async-scheduler.patch +++ b/patches/server/0073-Ability-to-use-Virtual-Thread-for-async-scheduler.patch @@ -4,6 +4,18 @@ Date: Tue, 12 Mar 2024 00:36:29 +0800 Subject: [PATCH] Ability to use Virtual Thread for async scheduler +diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java +index e43203060dfc26387fd5826ffae9e9ca7a01abf2..4826359242158da30b8e14f2cf8f0d309f3dddac 100644 +--- a/src/main/java/org/bukkit/craftbukkit/Main.java ++++ b/src/main/java/org/bukkit/craftbukkit/Main.java +@@ -385,7 +385,6 @@ public class Main { + tryPreloadClass("org.bukkit.craftbukkit.scheduler.CraftScheduler$1"); + tryPreloadClass("org.bukkit.craftbukkit.scheduler.CraftScheduler$2"); + tryPreloadClass("org.bukkit.craftbukkit.scheduler.CraftScheduler$3"); +- tryPreloadClass("org.bukkit.craftbukkit.scheduler.CraftScheduler$4"); + tryPreloadClass("org.slf4j.helpers.MessageFormatter"); + tryPreloadClass("org.slf4j.helpers.FormattingTuple"); + tryPreloadClass("org.slf4j.helpers.BasicMarker"); diff --git a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftAsyncScheduler.java b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftAsyncScheduler.java index 9c1aff17aabd062640e3f451a2ef8c50a7c62f10..234a92d643059e7178eeb0b4dc255bccef656851 100644 --- a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftAsyncScheduler.java