Skip to content

Commit 56ac4de

Browse files
committed
Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@893ea746 Make stage 2 chunk unload utilise I/O future write PaperMC/Paper@a41043f2 Add back command source for command blocks with output disabled and fix bukkit->minecraft not respecting output disabled for minecart command blocks (#13271) PaperMC/Paper@1f31ee5e Do not record task execution time as TickTime individually
1 parent fc89fde commit 56ac4de

File tree

4 files changed

+10
-137
lines changed

4 files changed

+10
-137
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ group = org.purpurmc.purpur
22
version = 1.21.10-R0.1-SNAPSHOT
33

44
mcVersion = 1.21.10
5-
paperCommit = e8c6ba5068287049c890688534963041208c4213
5+
paperCommit = 1f31ee5ebe45d97a596a4429d9871e3f8910cd28
66

77
org.gradle.configuration-cache = true
88
org.gradle.caching = true

purpur-server/minecraft-patches/features/0001-Ridables.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ index 6c452f195055afb489f828bfac9f23217ba7653d..7261bb8b2728b6e4ff519874375ef42f
1818
public boolean isClientAuthoritative() {
1919
return false;
2020
diff --git a/net/minecraft/server/MinecraftServer.java b/net/minecraft/server/MinecraftServer.java
21-
index e35fb4f48a16780d8728ac1c7bb0fc64e2ded4e7..2c7039281854cc9b21e2badb62389522a5c1728e 100644
21+
index 9337f3fa2daa224d04499fd2bb0fef9c1283ba27..614f725bee3b3047402543a12896935faeea877d 100644
2222
--- a/net/minecraft/server/MinecraftServer.java
2323
+++ b/net/minecraft/server/MinecraftServer.java
24-
@@ -1824,6 +1824,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
24+
@@ -1819,6 +1819,7 @@ public abstract class MinecraftServer extends ReentrantBlockableEventLoop<TickTa
2525
serverLevel.hasEntityMoveEvent = io.papermc.paper.event.entity.EntityMoveEvent.getHandlerList().getRegisteredListeners().length > 0; // Paper - Add EntityMoveEvent
2626
serverLevel.updateLagCompensationTick(); // Paper - lag compensation
2727
net.minecraft.world.level.block.entity.HopperBlockEntity.skipHopperEvents = serverLevel.paperConfig().hopper.disableMoveEvent || org.bukkit.event.inventory.InventoryMoveItemEvent.getHandlerList().getRegisteredListeners().length == 0; // Paper - Perf: Optimize Hoppers

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
// Paper start - improve tick loop
1818
public final ca.spottedleaf.moonrise.common.time.TickData tickTimes1s = new ca.spottedleaf.moonrise.common.time.TickData(java.util.concurrent.TimeUnit.SECONDS.toNanos(1L));
1919
public final ca.spottedleaf.moonrise.common.time.TickData tickTimes5s = new ca.spottedleaf.moonrise.common.time.TickData(java.util.concurrent.TimeUnit.SECONDS.toNanos(5L));
20-
@@ -370,6 +_,7 @@
20+
@@ -371,6 +_,7 @@
2121
public double[] computeTPS() {
2222
final long interval = this.tickRateManager().nanosecondsPerTick();
2323
return new double[] {
2424
+ getTPS(this.tickTimes5s, interval), // Purpur - Add 5 second tps average in /tps
2525
getTPS(this.tickTimes1m, interval),
2626
getTPS(this.tickTimes5m, interval),
2727
getTPS(this.tickTimes15m, interval)
28-
@@ -1012,6 +_,15 @@
28+
@@ -1013,6 +_,15 @@
2929

3030
LOGGER.info("Stopping server");
3131
Commands.COMMAND_SENDING_POOL.shutdownNow(); // Paper - Perf: Async command map building; Shutdown and don't bother finishing
@@ -41,7 +41,7 @@
4141
// CraftBukkit start
4242
if (this.server != null) {
4343
this.server.spark.disable(); // Paper - spark
44-
@@ -1110,6 +_,8 @@
44+
@@ -1111,6 +_,8 @@
4545
this.safeShutdown(waitForShutdown, false);
4646
}
4747
public void safeShutdown(boolean waitForShutdown, boolean isRestarting) {
@@ -50,7 +50,7 @@
5050
this.isRestarting = isRestarting;
5151
this.hasLoggedStop = true; // Paper - Debugging
5252
if (isDebugging()) io.papermc.paper.util.TraceUtil.dumpTraceForThread("Server stopped"); // Paper - Debugging
53-
@@ -1293,6 +_,16 @@
53+
@@ -1288,6 +_,16 @@
5454
}
5555
// Paper end - Add onboarding message for initial server start
5656

@@ -67,7 +67,7 @@
6767
while (this.running) {
6868
final long tickStart = System.nanoTime(); // Paper - improve tick loop
6969
long l; // Paper - improve tick loop - diff on change, expect this to be tick interval
70-
@@ -1306,8 +_,10 @@
70+
@@ -1301,8 +_,10 @@
7171
final long ticksBehind = Math.max(1L, this.tickSchedule.getPeriodsAhead(l, tickStart));
7272
final long catchup = (long)Math.max(
7373
1,
@@ -79,7 +79,7 @@
7979

8080
// adjust ticksBehind so that it is not greater-than catchup
8181
if (ticksBehind > catchup) {
82-
@@ -1778,7 +_,7 @@
82+
@@ -1773,7 +_,7 @@
8383
long worldTime = level.getGameTime();
8484
final ClientboundSetTimePacket worldPacket = new ClientboundSetTimePacket(worldTime, dayTime, doDaylight);
8585
for (Player entityhuman : level.players()) {
@@ -88,7 +88,7 @@
8888
continue;
8989
}
9090
ServerPlayer entityplayer = (ServerPlayer) entityhuman;
91-
@@ -1950,7 +_,7 @@
91+
@@ -1945,7 +_,7 @@
9292

9393
@DontObfuscate
9494
public String getServerModName() {

purpur-server/paper-patches/features/0006-Further-reduce-impact-of-tick-time-calculations-Pape.patch

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)