Skip to content

Commit b1176f7

Browse files
bea4devclaude
andcommitted
Update to 26.2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c84a626 commit b1176f7

17 files changed

Lines changed: 97 additions & 80 deletions

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Chiyogamiは [Paper](https://github.com/PaperMC/Paper) をフォークしたも
88
99
Other versions
1010
------
11+
* [26.1.2](https://github.com/bea4dev/Chiyogami/tree/ver/26.1.2)
1112
* [1.21.11](https://github.com/bea4dev/Chiyogami/tree/ver/1.21.11)
1213
* [1.21.8](https://github.com/bea4dev/Chiyogami/tree/ver/1.21.8)
1314

‎chiyogami-api/build.gradle.kts‎

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,23 @@ java {
1212
}
1313

1414
val annotationsVersion = "26.0.2"
15-
val adventureVersion = "4.26.1"
15+
val adventureVersion = "5.2.0"
1616
val bungeeCordChatVersion = "1.21-R0.2-deprecated+build.21"
1717
val slf4jVersion = "2.0.17"
18-
val log4jVersion = "2.25.2"
18+
val log4jVersion = "2.26.0"
1919

20-
val apiAndDocs: Configuration by configurations.creating {
20+
val apiAndDocs: Configuration by configurations.creating
21+
configurations.api {
22+
extendsFrom(apiAndDocs)
23+
}
24+
val javadocSourcepath: Configuration by configurations.creating {
2125
attributes {
2226
attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.DOCUMENTATION))
2327
attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling.EXTERNAL))
2428
attribute(DocsType.DOCS_TYPE_ATTRIBUTE, objects.named(DocsType.SOURCES))
2529
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage.JAVA_RUNTIME))
2630
}
2731
}
28-
configurations.api {
29-
extendsFrom(apiAndDocs)
30-
}
3132

3233
// Configure mockito agent that is needed in newer Java versions
3334
val mockitoAgent = configurations.register("mockitoAgent")
@@ -42,8 +43,8 @@ abstract class MockitoAgentProvider : CommandLineArgumentProvider {
4243

4344
dependencies {
4445
// api dependencies are listed transitively to API consumers
45-
api("com.google.guava:guava:33.5.0-jre")
46-
api("com.google.code.gson:gson:2.13.2")
46+
api("com.google.guava:guava:33.6.0-jre")
47+
api("com.google.code.gson:gson:2.14.0")
4748
api("org.yaml:snakeyaml:2.2")
4849
api("org.joml:joml:1.10.8") {
4950
isTransitive = false // https://github.com/JOML-CI/JOML/issues/352
@@ -60,6 +61,7 @@ dependencies {
6061

6162
apiAndDocs(platform("net.kyori:adventure-bom:$adventureVersion"))
6263
apiAndDocs("net.kyori:adventure-api")
64+
apiAndDocs("net.kyori:adventure-key")
6365
apiAndDocs("net.kyori:adventure-text-minimessage")
6466
apiAndDocs("net.kyori:adventure-text-serializer-gson")
6567
apiAndDocs("net.kyori:adventure-text-serializer-legacy")
@@ -74,12 +76,13 @@ dependencies {
7476
val annotations = "org.jetbrains:annotations:$annotationsVersion"
7577
compileOnly(annotations)
7678
testCompileOnly(annotations)
79+
javadocSourcepath(annotations) // For adventure-api module requirements
7780

7881
val checkerQual = "org.checkerframework:checker-qual:3.49.2"
7982
compileOnlyApi(checkerQual)
8083
testCompileOnly(checkerQual)
8184

82-
api("org.jspecify:jspecify:1.0.0")
85+
apiAndDocs("org.jspecify:jspecify:1.0.0")
8386

8487
// Test dependencies
8588
testImplementation("org.apache.commons:commons-lang3:3.20.0")
@@ -199,32 +202,25 @@ tasks.withType<Javadoc>().configureEach {
199202
options.use()
200203
options.isDocFilesSubDirs = true
201204
options.links(
202-
"https://guava.dev/releases/33.5.0-jre/api/docs/",
205+
"https://guava.dev/releases/33.6.0-jre/api/docs/",
203206
"https://www.javadocs.dev/org.yaml/snakeyaml/2.2/",
204207
"https://www.javadocs.dev/org.jetbrains/annotations/$annotationsVersion/",
205208
"https://www.javadocs.dev/org.joml/joml/1.10.8/",
206-
"https://www.javadocs.dev/com.google.code.gson/gson/2.13.2",
209+
"https://www.javadocs.dev/com.google.code.gson/gson/2.14.0",
207210
"https://jspecify.dev/docs/api/",
208-
"https://jd.advntr.dev/api/$adventureVersion/",
209-
"https://jd.advntr.dev/key/$adventureVersion/",
210-
"https://jd.advntr.dev/text-minimessage/$adventureVersion/",
211-
"https://jd.advntr.dev/text-serializer-gson/$adventureVersion/",
212-
"https://jd.advntr.dev/text-serializer-legacy/$adventureVersion/",
213-
"https://jd.advntr.dev/text-serializer-plain/$adventureVersion/",
214-
"https://jd.advntr.dev/text-logger-slf4j/$adventureVersion/",
211+
"https://jd.papermc.io/adventure/$adventureVersion/",
215212
"https://www.javadocs.dev/org.slf4j/slf4j-api/$slf4jVersion/",
216213
"https://logging.apache.org/log4j/2.x/javadoc/log4j-api/",
217214
"https://www.javadocs.dev/org.apache.maven.resolver/maven-resolver-api/1.7.3",
218215
)
219216
options.tags("apiNote:a:API Note:")
220-
options.tags("implNote:a:Implementation Note:")
221217

222-
inputs.files(apiAndDocs).ignoreEmptyDirectories().withPropertyName(apiAndDocs.name + "-configuration")
223-
val apiAndDocsElements = apiAndDocs.elements
218+
inputs.files(javadocSourcepath).ignoreEmptyDirectories().withPropertyName(javadocSourcepath.name + "-configuration")
219+
val javadocSourcepathElements = javadocSourcepath.elements
224220
doFirst {
225221
options.addStringOption(
226222
"sourcepath",
227-
apiAndDocsElements.get().map { it.asFile }.joinToString(separator = File.pathSeparator, transform = File::getPath)
223+
javadocSourcepathElements.get().map { it.asFile }.joinToString(separator = File.pathSeparator, transform = File::getPath)
228224
)
229225
}
230226

‎chiyogami-api/build.gradle.kts.patch‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
idea {
1010
module {
1111
generatedSourceDirs.add(generatedDir.toFile())
12-
@@ -100,8 +_,20 @@
13-
sourceSets {
12+
@@ -104,6 +_,18 @@
1413
main {
1514
java {
1615
srcDir(generatedDir)
@@ -29,8 +28,7 @@
2928
}
3029
}
3130
}
32-
33-
@@ -184,7 +_,7 @@
31+
@@ -186,7 +_,7 @@
3432

3533
tasks.withType<Javadoc>().configureEach {
3634
val options = options as StandardJavadocDocletOptions
@@ -39,7 +37,7 @@
3937
options.use()
4038
options.isDocFilesSubDirs = true
4139
options.links(
42-
@@ -219,11 +_,11 @@
40+
@@ -213,11 +_,11 @@
4341
}
4442

4543
// workaround for https://github.com/gradle/gradle/issues/4046

‎chiyogami-server/build.gradle.kts‎

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ plugins {
88
`maven-publish`
99
idea
1010
id("io.papermc.paperweight.core")
11-
id("io.papermc.fill.gradle") version "1.0.11"
11+
id("io.papermc.fill.gradle") version "1.0.12"
1212
}
1313

1414
val paperMavenPublicUrl = "https://repo.papermc.io/repository/maven-public/"
1515

1616
dependencies {
17-
mache("io.papermc:mache:26.1.2+build.3")
17+
mache("io.papermc:mache:26.2+build.1")
1818
paperclip("io.papermc:paperclip:3.0.4")
1919
}
2020

@@ -34,7 +34,7 @@ paperweight {
3434
activeFork = fork
3535

3636
updatingMinecraft {
37-
// oldPaperCommit = "711c5de2b05df39b72c44ff54e9f9381f8d153cb"
37+
// oldPaperCommit = "d4fe85375af18bfa88f44d7c1e6a61904ae550cc"
3838
}
3939
}
4040

@@ -135,7 +135,7 @@ abstract class MockitoAgentProvider : CommandLineArgumentProvider {
135135
dependencies {
136136
implementation(project(":chiyogami-api"))
137137
implementation("com.github.bea4dev:ChiyogamiLib:793983cef1")
138-
implementation("ca.spottedleaf:concurrentutil:0.0.10")
138+
implementation("ca.spottedleaf:leafpile:1.0.0")
139139
implementation("org.jline:jline-terminal-ffm:3.27.1") // use ffm on java 22+
140140
implementation("org.jline:jline-terminal-jni:3.27.1") // fall back to jni on java 21
141141
implementation("net.minecrell:terminalconsoleappender:1.3.0")
@@ -147,16 +147,16 @@ dependencies {
147147
all its classes to check if they are plugins.
148148
Scanning takes about 1-2 seconds so adding this speeds up the server start.
149149
*/
150-
implementation("org.apache.logging.log4j:log4j-core:2.25.2")
151-
log4jPlugins.annotationProcessorConfigurationName("org.apache.logging.log4j:log4j-core:2.25.2") // Needed to generate meta for our Log4j plugins
150+
implementation("org.apache.logging.log4j:log4j-core:2.26.0")
151+
log4jPlugins.annotationProcessorConfigurationName("org.apache.logging.log4j:log4j-core:2.26.0") // Needed to generate meta for our Log4j plugins
152152
runtimeOnly(log4jPlugins.output)
153153
alsoShade(log4jPlugins.output)
154154

155155
implementation("com.velocitypowered:velocity-native:3.4.0-SNAPSHOT") {
156156
isTransitive = false
157157
}
158-
implementation("io.netty:netty-codec-haproxy:4.2.7.Final") // Add support for proxy protocol
159-
implementation("org.apache.logging.log4j:log4j-iostreams:2.25.2")
158+
implementation("io.netty:netty-codec-haproxy:4.2.15.Final") // Add support for proxy protocol
159+
implementation("org.apache.logging.log4j:log4j-iostreams:2.26.0")
160160
implementation("org.ow2.asm:asm-commons:9.9.1")
161161
implementation("org.spongepowered:configurate-yaml:4.2.0")
162162

@@ -224,6 +224,15 @@ tasks.compileTestJava {
224224
options.compilerArgs.add("-parameters")
225225
}
226226

227+
tasks.named<JavaCompile>(log4jPlugins.compileJavaTaskName) {
228+
options.compilerArgs.addAll(
229+
listOf(
230+
"-Alog4j.graalvm.groupId=${project.group}",
231+
"-Alog4j.graalvm.artifactId=${project.name}"
232+
)
233+
)
234+
}
235+
227236
// Bump compile tasks to 1GB memory to avoid OOMs
228237
tasks.withType<JavaCompile>().configureEach {
229238
options.forkOptions.memoryMaximumSize = "1G"
@@ -310,6 +319,7 @@ fun TaskContainer.registerRunTask(
310319
}
311320
systemProperty("io.papermc.paper.suppress.sout.nags", true)
312321
systemProperty("paper.maxChatCommandInputSize", 32767)
322+
systemProperty("paper.disableMigrationDelay", true)
313323

314324
val memoryGb = providers.gradleProperty("paper.runMemoryGb").getOrElse("2")
315325
minHeapSize = "${memoryGb}G"

‎chiyogami-server/build.gradle.kts.patch‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
+ activeFork = fork
1717
+
1818
updatingMinecraft {
19-
// oldPaperCommit = "711c5de2b05df39b72c44ff54e9f9381f8d153cb"
19+
// oldPaperCommit = "d4fe85375af18bfa88f44d7c1e6a61904ae550cc"
2020
}
21-
@@ -89,7 +_,20 @@
21+
@@ -86,7 +_,20 @@
2222
}
2323
}
2424

@@ -40,17 +40,17 @@
4040
configurations.named(log4jPlugins.compileClasspathConfigurationName) {
4141
extendsFrom(configurations.compileClasspath.get())
4242
}
43-
@@ -111,7 +_,8 @@
43+
@@ -109,7 +_,8 @@
4444
}
4545

4646
dependencies {
4747
- implementation(project(":paper-api"))
4848
+ implementation(project(":chiyogami-api"))
4949
+ implementation("com.github.bea4dev:ChiyogamiLib:793983cef1")
50-
implementation("ca.spottedleaf:concurrentutil:0.0.10")
50+
implementation("ca.spottedleaf:leafpile:1.0.0")
5151
implementation("org.jline:jline-terminal-ffm:3.27.1") // use ffm on java 22+
5252
implementation("org.jline:jline-terminal-jni:3.27.1") // fall back to jni on java 21
53-
@@ -160,6 +_,10 @@
53+
@@ -157,6 +_,10 @@
5454
implementation("me.lucko:spark-paper:1.10.152")
5555
}
5656

@@ -61,7 +61,7 @@
6161
tasks.jar {
6262
manifest {
6363
val git = Git(rootProject.layout.projectDirectory.path)
64-
@@ -174,14 +_,14 @@
64+
@@ -171,14 +_,14 @@
6565
val gitBranch = git.exec(providers, "rev-parse", "--abbrev-ref", "HEAD").get().trim()
6666
attributes(
6767
"Main-Class" to "org.bukkit.craftbukkit.Main",
@@ -81,7 +81,7 @@
8181
"Build-Number" to (build ?: ""),
8282
"Build-Time" to buildTime.toString(),
8383
"Git-Branch" to gitBranch,
84-
@@ -240,7 +_,7 @@
84+
@@ -246,7 +_,7 @@
8585
jvmArgumentProviders.add(provider)
8686
}
8787

‎chiyogami-server/minecraft-patches/features/0001-add-files.patch‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ index 0000000000000000000000000000000000000000..20cc1bc1cf14f1bd093b59ff6475516b
208208
+
209209
diff --git a/world/chiyogami/thread/ChiyogamiServerThreadProvider.java b/world/chiyogami/thread/ChiyogamiServerThreadProvider.java
210210
new file mode 100644
211-
index 0000000000000000000000000000000000000000..33811316b3030cdeb2b7c1ac628284bf024b9d2d
211+
index 0000000000000000000000000000000000000000..fb8b3e614d42ed5aea58c043ce7b2112979af023
212212
--- /dev/null
213213
+++ b/world/chiyogami/thread/ChiyogamiServerThreadProvider.java
214214
@@ -0,0 +1,29 @@
@@ -228,7 +228,7 @@ index 0000000000000000000000000000000000000000..33811316b3030cdeb2b7c1ac628284bf
228228
+ providerField.set(null, new ServerThreadProvider() {
229229
+ @Override
230230
+ public Thread getMainThread() {
231-
+ return MinecraftServer.getServer().serverThread;
231+
+ return MinecraftServer.getServer().getRunningThread();
232232
+ }
233233
+
234234
+ @Override
@@ -390,7 +390,7 @@ index 0000000000000000000000000000000000000000..abcfed510c9143b9c8e8c1487267cb52
390390
+}
391391
diff --git a/world/chiyogami/thread/WorldThread.java b/world/chiyogami/thread/WorldThread.java
392392
new file mode 100644
393-
index 0000000000000000000000000000000000000000..6ff13833c811b392194e8450b1b2f84562fc45ef
393+
index 0000000000000000000000000000000000000000..7b86b4011674beee03c22fc43965e0581d22c483
394394
--- /dev/null
395395
+++ b/world/chiyogami/thread/WorldThread.java
396396
@@ -0,0 +1,229 @@
@@ -558,7 +558,7 @@ index 0000000000000000000000000000000000000000..6ff13833c811b392194e8450b1b2f845
558558
+ public void catchIllegalThread(String reason){
559559
+ Thread currentThread = Thread.currentThread();
560560
+
561-
+ if(currentThread == MinecraftServer.getServer().serverThread) return;
561+
+ if(currentThread == MinecraftServer.getServer().getRunningThread()) return;
562562
+ if(currentThread == this.currentThread) return;
563563
+
564564
+ throw new IllegalStateException("Chiyogami > Unauthorized concurrent execution to worlds."

‎chiyogami-server/minecraft-patches/features/0002-add-world-threading.patch‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] add world threading
55

66

77
diff --git a/net/minecraft/server/MinecraftServer.java b/net/minecraft/server/MinecraftServer.java
8-
index cc35c6271c98615a486422d0490145227626bd85..48f45a29d8cdca1d0e823ee1bafc974c5c28e0f8 100644
8+
index 68151ce05e7009f28dda0470c744920cbd5f4a27..d17fd6a3b39f12c4f178e824c32aedb5bb277bf4 100644
99
--- a/net/minecraft/server/MinecraftServer.java
1010
+++ b/net/minecraft/server/MinecraftServer.java
11-
@@ -1837,6 +1837,12 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
11+
@@ -1813,6 +1813,12 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
1212

1313
this.isIteratingOverLevels = true; // Paper - Throw exception on world create while being ticked
1414
for (ServerLevel level : this.getAllLevels()) {
@@ -21,7 +21,7 @@ index cc35c6271c98615a486422d0490145227626bd85..48f45a29d8cdca1d0e823ee1bafc974c
2121
level.hasPhysicsEvent = org.bukkit.event.block.BlockPhysicsEvent.getHandlerList().getRegisteredListeners().length > 0; // Paper - BlockPhysicsEvent
2222
level.hasEntityMoveEvent = io.papermc.paper.event.entity.EntityMoveEvent.getHandlerList().getRegisteredListeners().length > 0; // Paper - Add EntityMoveEvent
2323
level.updateLagCompensationTick(); // Paper - lag compensation
24-
@@ -1855,7 +1861,9 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
24+
@@ -1831,7 +1837,9 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
2525
profiler.pop();
2626
profiler.pop();
2727
level.explosionDensityCache.clear(); // Paper - Optimize explosions
@@ -32,7 +32,7 @@ index cc35c6271c98615a486422d0490145227626bd85..48f45a29d8cdca1d0e823ee1bafc974c
3232

3333
profiler.popPush("connection");
3434
diff --git a/net/minecraft/world/level/Level.java b/net/minecraft/world/level/Level.java
35-
index 56659181dc817ea028428eabf5937308c04b8cc5..394aa2dfa6b40aa4343777b3d1568d4f903e3895 100644
35+
index 9286d9bcf3ec4069e77d3133f3d7bf29b2370c5a..914e19c0c70239547629b103b5c1320c5a17ceb6 100644
3636
--- a/net/minecraft/world/level/Level.java
3737
+++ b/net/minecraft/world/level/Level.java
3838
@@ -101,6 +101,7 @@ import org.bukkit.craftbukkit.CraftWorld;
@@ -43,11 +43,11 @@ index 56659181dc817ea028428eabf5937308c04b8cc5..394aa2dfa6b40aa4343777b3d1568d4f
4343
// CraftBukkit end
4444

4545
public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedleaf.moonrise.patches.chunk_system.level.ChunkSystemLevel, ca.spottedleaf.moonrise.patches.chunk_system.world.ChunkSystemEntityGetter { // Paper - rewrite chunk system // Paper - optimise collisions
46-
@@ -122,7 +123,10 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl
46+
@@ -123,7 +124,10 @@ public abstract class Level implements LevelAccessor, AutoCloseable, ca.spottedl
4747
protected final CollectingNeighborUpdater neighborUpdater;
4848
private final List<TickingBlockEntity> pendingBlockEntityTickers = Lists.newArrayList();
4949
private boolean tickingBlockEntities;
50-
- public final Thread thread;
50+
- protected final Thread thread;
5151
+ // Chiyogami start - world threading
5252
+ public Thread thread;
5353
+ public WorldThread worldThread;

0 commit comments

Comments
 (0)