Skip to content

Commit d096a3c

Browse files
committed
initial update to 1.21.11
DAB and AMB is not updated yet
1 parent 6100382 commit d096a3c

File tree

17 files changed

+60
-74
lines changed

17 files changed

+60
-74
lines changed

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
group = gg.pufferfish.pufferfish
2-
version = 1.21.10-R0.1-SNAPSHOT
2+
version = 1.21.11-R0.1-SNAPSHOT
33

44
# This is the current API version for use in (paper-)plugin.yml files
55
# During snapshot cycles this should be the anticipated version of the release target
6-
apiVersion = 1.21.10
7-
mcVersion = 1.21.10
6+
apiVersion = 1.21.11
7+
mcVersion = 1.21.11
88

9-
paperRef = 2f7f1397628914e44154c326b56e5e7e9adf6721
9+
paperRef = b36b49ac236c3ce5bf0a2c3991f3411733495bd5
1010

1111
paperweight.defaultMinFuzz = 0.1
1212
org.gradle.configuration-cache = true

pufferfork-api/build.gradle.kts.patch

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
--- a/paper-api/build.gradle.kts
22
+++ b/paper-api/build.gradle.kts
3-
@@ -50,6 +_,7 @@
3+
@@ -52,6 +_,7 @@
44
api("org.apache.logging.log4j:log4j-api:$log4jVersion")
55
api("org.slf4j:slf4j-api:$slf4jVersion")
66
api("com.mojang:brigadier:1.3.10")
77
+ api("io.sentry:sentry:8.14.0") // Pufferfish
88

99
// Deprecate bungeecord-chat in favor of adventure
1010
api("net.md-5:bungeecord-chat:$bungeeCordChatVersion") {
11-
@@ -83,13 +_,13 @@
11+
@@ -85,13 +_,13 @@
1212
testImplementation("org.apache.commons:commons-lang3:3.17.0")
1313
testImplementation("org.junit.jupiter:junit-jupiter:5.12.2")
1414
testImplementation("org.hamcrest:hamcrest:2.2")
@@ -24,7 +24,7 @@
2424
idea {
2525
module {
2626
generatedSourceDirs.add(generatedDir.toFile())
27-
@@ -99,6 +_,18 @@
27+
@@ -101,6 +_,18 @@
2828
main {
2929
java {
3030
srcDir(generatedDir)
@@ -43,21 +43,7 @@
4343
}
4444
}
4545
}
46-
@@ -146,6 +_,13 @@
47-
}
48-
}
49-
50-
+// Pufferfish Start
51-
+tasks.withType<JavaCompile> {
52-
+ val compilerArgs = options.compilerArgs
53-
+ compilerArgs.add("--add-modules=jdk.incubator.vector")
54-
+}
55-
+// Pufferfish End
56-
+
57-
tasks.jar {
58-
from(generateApiVersioningFile.map { it.outputs.files.singleFile }) {
59-
into("META-INF/maven/${project.group}/${project.name}")
60-
@@ -165,8 +_,9 @@
46+
@@ -183,8 +_,9 @@
6147

6248
tasks.withType<Javadoc>().configureEach {
6349
val options = options as StandardJavadocDocletOptions
@@ -68,7 +54,7 @@
6854
options.isDocFilesSubDirs = true
6955
options.links(
7056
"https://guava.dev/releases/33.3.1-jre/api/docs/",
71-
@@ -198,11 +_,11 @@
57+
@@ -216,11 +_,11 @@
7258
}
7359

7460
// workaround for https://github.com/gradle/gradle/issues/4046
@@ -82,7 +68,21 @@
8268
include("**/doc-files/**")
8369
}
8470
into("build/docs/javadoc")
85-
@@ -217,6 +_,7 @@
71+
@@ -228,6 +_,13 @@
72+
}
73+
}
74+
75+
+// Pufferfish Start
76+
+tasks.withType<JavaCompile> {
77+
+ val compilerArgs = options.compilerArgs
78+
+ compilerArgs.add("--add-modules=jdk.incubator.vector")
79+
+}
80+
+// Pufferfish End
81+
+
82+
tasks.test {
83+
useJUnitPlatform()
84+
85+
@@ -235,6 +_,7 @@
8686
val provider = objects.newInstance<MockitoAgentProvider>()
8787
provider.fileCollection.from(mockitoAgent)
8888
jvmArgumentProviders.add(provider)

pufferfork-server/build.gradle.kts.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/paper-server/build.gradle.kts
22
+++ b/paper-server/build.gradle.kts
3-
@@ -23,6 +_,17 @@
3+
@@ -22,6 +_,17 @@
44
minecraftVersion = providers.gradleProperty("mcVersion")
55
gitFilePatches = false
66

@@ -17,7 +17,7 @@
1717
+
1818
spigot {
1919
enabled = true
20-
buildDataRef = "42d18d4c4653ffc549778dbe223f6994a031d69e"
20+
buildDataRef = "17f77cee7117ab9d6175f088ae8962bfd04e61a9"
2121
@@ -104,7 +_,21 @@
2222
}
2323
}
@@ -47,7 +47,7 @@
4747
dependencies {
4848
- implementation(project(":paper-api"))
4949
+ implementation(project(":pufferfork-api")) // Pufferfork
50-
implementation("ca.spottedleaf:concurrentutil:0.0.7")
50+
implementation("ca.spottedleaf:concurrentutil:0.0.8")
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
5353
@@ -162,6 +_,13 @@
@@ -62,9 +62,9 @@
6262
+ implementation("net.serlith:Flare:4.0.9") // Pufferfish - flare
6363
+
6464
testImplementation("io.github.classgraph:classgraph:4.8.179") // For mob goal test
65+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
6566
testImplementation("org.junit.jupiter:junit-jupiter:5.12.2")
66-
testImplementation("org.junit.platform:junit-platform-suite-engine:1.12.2")
67-
@@ -185,6 +_,13 @@
67+
@@ -186,6 +_,13 @@
6868
implementation("me.lucko:spark-paper:1.10.152")
6969
}
7070

@@ -78,7 +78,7 @@
7878
tasks.jar {
7979
manifest {
8080
val git = Git(rootProject.layout.projectDirectory.path)
81-
@@ -197,14 +_,14 @@
81+
@@ -198,14 +_,14 @@
8282
val gitBranch = git.exec(providers, "rev-parse", "--abbrev-ref", "HEAD").get().trim()
8383
attributes(
8484
"Main-Class" to "org.bukkit.craftbukkit.Main",
@@ -98,7 +98,7 @@
9898
"Build-Number" to (build ?: ""),
9999
"Build-Time" to buildTime.toString(),
100100
"Git-Branch" to gitBranch,
101-
@@ -263,7 +_,7 @@
101+
@@ -264,7 +_,7 @@
102102
jvmArgumentProviders.add(provider)
103103
}
104104

pufferfork-server/minecraft-patches/sources/net/minecraft/server/MinecraftServer.java.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/net/minecraft/server/MinecraftServer.java
22
+++ b/net/minecraft/server/MinecraftServer.java
3-
@@ -1301,7 +_,7 @@
3+
@@ -1304,7 +_,7 @@
44
final long ticksBehind = Math.max(1L, this.tickSchedule.getPeriodsAhead(l, tickStart));
55
final long catchup = (long)Math.max(
66
1,
@@ -9,7 +9,7 @@
99
);
1010

1111
// adjust ticksBehind so that it is not greater-than catchup
12-
@@ -2722,6 +_,7 @@
12+
@@ -2707,6 +_,7 @@
1313
// CraftBukkit end
1414

1515
private ProfilerFiller createProfiler() {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
--- a/net/minecraft/server/ReloadableServerResources.java
22
+++ b/net/minecraft/server/ReloadableServerResources.java
3-
@@ -41,6 +_,8 @@
3+
@@ -42,6 +_,8 @@
44
this.commands = new Commands(commandSelection, CommandBuildContext.simple(registries, enabledFeatures), true); // Paper - Brigadier Command API - use modern alias registration
55
io.papermc.paper.command.brigadier.PaperCommands.INSTANCE.setDispatcher(this.commands, CommandBuildContext.simple(registries, enabledFeatures)); // Paper - Brigadier Command API
66
io.papermc.paper.command.PaperCommands.registerCommands(); // Paper
77
+ gg.pufferfish.pufferfish.command.registrar.PufferfishCommandRegistrar.registerCommands(); // Pufferfork - built-in pufferfish commands
88
+ gg.pufferfish.pufferfish.flare.FlareCommand.init(); // Pufferfork - flare command
99
this.advancements = new ServerAdvancementManager(registries);
10-
this.functionLibrary = new ServerFunctionLibrary(functionCompilationLevel, this.commands.getDispatcher());
10+
this.functionLibrary = new ServerFunctionLibrary(permissions, this.commands.getDispatcher());
1111
}

pufferfork-server/minecraft-patches/sources/net/minecraft/server/dedicated/DedicatedServer.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/net/minecraft/server/dedicated/DedicatedServer.java
22
+++ b/net/minecraft/server/dedicated/DedicatedServer.java
3-
@@ -277,6 +_,7 @@
3+
@@ -274,6 +_,7 @@
44
this.server.spark.registerCommandBeforePlugins(this.server); // Paper - spark
55
com.destroystokyo.paper.Metrics.PaperMetrics.startMetrics(); // Paper - start metrics
66
com.destroystokyo.paper.VersionHistoryManager.INSTANCE.getClass(); // Paper - load version history now

pufferfork-server/minecraft-patches/sources/net/minecraft/server/level/ServerEntity.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
}
1919
+ } // Pufferfish - Better checking for useless move packets
2020

21-
if (this.entity.hasImpulse || this.trackDelta || this.entity instanceof LivingEntity && ((LivingEntity)this.entity).isFallFlying()) {
21+
if (this.entity.needsSync || this.trackDelta || this.entity instanceof LivingEntity && ((LivingEntity)this.entity).isFallFlying()) {
2222
Vec3 deltaMovement = this.entity.getDeltaMovement();

pufferfork-server/minecraft-patches/sources/net/minecraft/server/level/ServerLevel.java.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/net/minecraft/server/level/ServerLevel.java
22
+++ b/net/minecraft/server/level/ServerLevel.java
3-
@@ -836,7 +_,19 @@
3+
@@ -851,7 +_,19 @@
44
}
55

66
profilerFiller.push("tick");
@@ -21,7 +21,7 @@
2121
profilerFiller.pop();
2222
}
2323
}
24-
@@ -982,7 +_,7 @@
24+
@@ -1002,7 +_,7 @@
2525
int minBlockZ = pos.getMinBlockZ();
2626
ProfilerFiller profilerFiller = Profiler.get();
2727
profilerFiller.push("thunder");

pufferfork-server/minecraft-patches/sources/net/minecraft/server/network/ServerGamePacketListenerImpl.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/net/minecraft/server/network/ServerGamePacketListenerImpl.java
22
+++ b/net/minecraft/server/network/ServerGamePacketListenerImpl.java
3-
@@ -2168,6 +_,7 @@
3+
@@ -2201,6 +_,7 @@
44

55
@Override
66
public void handlePaddleBoat(ServerboundPaddleBoatPacket packet) {

pufferfork-server/minecraft-patches/sources/net/minecraft/world/entity/ai/attributes/AttributeMap.java.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
}
1313

1414
private void onAttributeModified(AttributeInstance instance) {
15-
@@ -44,7 +_,7 @@
15+
@@ -43,7 +_,7 @@
16+
}
1617

17-
@Nullable
18-
public AttributeInstance getInstance(Holder<Attribute> attribute) {
18+
public @Nullable AttributeInstance getInstance(Holder<Attribute> attribute) {
1919
- return this.attributes.computeIfAbsent(attribute, holder -> this.supplier.createInstance(this::onAttributeModified, (Holder<Attribute>)holder));
2020
+ return this.attributes.computeIfAbsent(attribute, this.createInstance); // Pufferfish - Reduce entity allocations (cache lambda, as for some reason java allocates it anyways)
2121
}

0 commit comments

Comments
 (0)