Skip to content

Commit a57d808

Browse files
Update to Paper 26.2
1 parent 51144ba commit a57d808

30 files changed

Lines changed: 214 additions & 218 deletions

.github/workflows/auto-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
uses: actions/checkout@v3
1212
with:
1313
path: 'SparklyPaper'
14-
ref: 'ver/26.1.2'
14+
ref: 'ver/26.2'
1515
token: ${{ secrets.LORITTA_PAT }}
1616

1717
- name: Checkout Paper Repository

sparklypaper-api/paper-patches/files/src/main/java/com/destroystokyo/paper/MaterialTags.java.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
.ensureSize("CONCRETES", 16).lock();
99

1010
/**
11-
@@ -182,6 +_,7 @@
11+
@@ -183,6 +_,7 @@
1212
.endsWith("TERRACOTTA")
1313
.not(Material.TERRACOTTA)
1414
.notEndsWith("GLAZED_TERRACOTTA")
1515
+ .notStartsWith("SPARKLYPOWER_") // SparklyPaper - custom blocks
1616
.ensureSize("STAINED_TERRACOTTA", 16).lock();
1717

1818
/**
19-
@@ -189,6 +_,7 @@
19+
@@ -190,6 +_,7 @@
2020
*/
2121
public static final MaterialSetTag TERRACOTTA = new MaterialSetTag(keyFor("terracotta"))
2222
.endsWith("TERRACOTTA")

sparklypaper-api/paper-patches/files/src/main/java/org/bukkit/Material.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/Material.java
22
+++ b/src/main/java/org/bukkit/Material.java
3-
@@ -1810,6 +_,16 @@
3+
@@ -1841,6 +_,16 @@
44
ZOMBIE_HEAD(-1, Skull.class),
55
ZOMBIE_WALL_HEAD(-1, WallSkull.class),
66
// End generate - Blocks

sparklypaper-api/paper-patches/files/src/main/java/org/bukkit/block/BlockType.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--- a/src/main/java/org/bukkit/block/BlockType.java
22
+++ b/src/main/java/org/bukkit/block/BlockType.java
3-
@@ -2529,6 +_,16 @@
3+
@@ -2586,6 +_,16 @@
44
BlockType.Typed<WallSkull> ZOMBIE_WALL_HEAD = getBlockType("zombie_wall_head");
55
// End generate - BlockType
66
//</editor-fold>

sparklypaper-api/paper-patches/files/src/main/java/org/bukkit/entity/Player.java.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--- a/src/main/java/org/bukkit/entity/Player.java
22
+++ b/src/main/java/org/bukkit/entity/Player.java
3-
@@ -4013,4 +_,104 @@
4-
*/
5-
@ApiStatus.Experimental
6-
PlayerGameConnection getConnection();
3+
@@ -4020,4 +_,104 @@
4+
default ObjectContents asObjectContents() {
5+
return this.getPlayerProfile().asObjectContents();
6+
}
77
+
88
+ // SparklyPaper start - per-player chunk rate overrides
99
+ /**

sparklypaper-server/build.gradle.kts.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
+ implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0")
5959
+ implementation("com.charleskorn.kaml:kaml:0.97.0")
6060
+ // SparklyPaper end
61-
implementation("ca.spottedleaf:concurrentutil:0.0.10")
61+
implementation("ca.spottedleaf:leafpile:1.0.0")
6262
implementation("org.jline:jline-terminal-ffm:3.27.1") // use ffm on java 22+
6363
implementation("org.jline:jline-terminal-jni:3.27.1") // fall back to jni on java 21
6464
@@ -193,9 +_,14 @@

sparklypaper-server/minecraft-patches/features/0001-Parallel-World-Ticking.patch

Lines changed: 79 additions & 78 deletions
Large diffs are not rendered by default.

sparklypaper-server/minecraft-patches/features/0002-Add-WorldTickStartEvent-and-WorldTickEndEvent.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Add WorldTickStartEvent and WorldTickEndEvent
55

66

77
diff --git a/net/minecraft/server/MinecraftServer.java b/net/minecraft/server/MinecraftServer.java
8-
index 19c7ee376466176fc2879e252caba9beba91ea3c..4c2bcb62316b710c41bc8bb148d38f435659dd35 100644
8+
index 1461d1fac7c9ccc3a7e4fade3919843732f819cf..6c41f7697c2c3f1cd8035b8d9d1ecfbd289cf9e4 100644
99
--- a/net/minecraft/server/MinecraftServer.java
1010
+++ b/net/minecraft/server/MinecraftServer.java
11-
@@ -1856,11 +1856,15 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
11+
@@ -1832,11 +1832,15 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
1212
ca.spottedleaf.moonrise.common.util.TickThread.ServerLevelTickThread currentThread = (ca.spottedleaf.moonrise.common.util.TickThread.ServerLevelTickThread) Thread.currentThread();
1313
currentThread.currentlyTickingServerLevel = level;
1414

sparklypaper-server/minecraft-patches/sources/net/minecraft/network/protocol/game/ClientboundBlockUpdatePacket.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
ClientboundBlockUpdatePacket::new
55
);
66
private final BlockPos pos;
7-
- public final BlockState blockState;
7+
- private final BlockState blockState;
88
+ public BlockState blockState; // SparklyPaper - Helpful NMS packet changes: remove final
99

1010
public ClientboundBlockUpdatePacket(final BlockPos pos, final BlockState state) {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--- a/net/minecraft/references/BlockItemIds.java
2+
+++ b/net/minecraft/references/BlockItemIds.java
3+
@@ -788,4 +_,13 @@
4+
private static WeatheringCopperCollection<BlockItemId> createSimpleCopper(final String baseName) {
5+
return WeatheringCopperCollection.prefixWithState(WeatheringCopperCollection.create(baseName)).map(BlockItemId::create);
6+
}
7+
+
8+
+ // SparklyPower Block IDs
9+
+ public static final BlockItemId SPARKLYPOWER_RAINBOW_WOOL = BlockItemId.create("sparklypower_rainbow_wool");
10+
+ public static final BlockItemId SPARKLYPOWER_RAINBOW_CONCRETE = BlockItemId.create("sparklypower_rainbow_concrete");
11+
+ public static final BlockItemId SPARKLYPOWER_RAINBOW_TERRACOTTA = BlockItemId.create("sparklypower_rainbow_terracotta");
12+
+ public static final BlockItemId SPARKLYPOWER_ASPHALT_SERVER = BlockItemId.create("sparklypower_asphalt_server");
13+
+ public static final BlockItemId SPARKLYPOWER_ASPHALT_SERVER_SLAB = BlockItemId.create("sparklypower_asphalt_server_slab");
14+
+ public static final BlockItemId SPARKLYPOWER_ASPHALT_PLAYER = BlockItemId.create("sparklypower_asphalt_player");
15+
+ public static final BlockItemId SPARKLYPOWER_ASPHALT_PLAYER_SLAB = BlockItemId.create("sparklypower_asphalt_player_slab");
16+
}

0 commit comments

Comments
 (0)