mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 18:07:43 +01:00
Updated Upstream (Paper & Pufferfish)
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@eff22eb Ensure players are removed from pendingLogin Pufferfish Changes: pufferfish-gg/Pufferfish@31d0ff3 Updated Upstream (Paper) pufferfish-gg/Pufferfish@4882a95 Fix PAPI edge-case pufferfish-gg/Pufferfish@254c002 Updated Upstream (Paper) pufferfish-gg/Pufferfish@4b26a0b Updated Upstream (Paper) pufferfish-gg/Pufferfish@2c1e02e Updated Upstream (Paper) pufferfish-gg/Pufferfish@3888607 Update DAB entities
This commit is contained in:
@@ -835,10 +835,10 @@ index 4d28a1f9fe43bb8e9f5ffaf06895c94fa0749d5d..08c46cdc626e89fed0d769d50735e983
|
||||
this.connection.send(new ClientboundPlayerAbilitiesPacket(this.getAbilities()));
|
||||
playerlist.sendLevelInfo(this, worldserver);
|
||||
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
||||
index 9dbd5c2e7d0c9bb26556ce32ced4c43ad9f3df0c..93c0560df791e768277e33999379738ec597a6dd 100644
|
||||
index 166fd17d03d84cd3ea5917c17e6b9549a46295e0..48224c850e5be223971b76a4e580b95585208ea6 100644
|
||||
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
||||
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
|
||||
@@ -422,7 +422,7 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic
|
||||
@@ -416,7 +416,7 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic
|
||||
this.aboveGroundVehicleTickCount = 0;
|
||||
}} // Paper - end if (valid)
|
||||
|
||||
@@ -847,7 +847,7 @@ index 9dbd5c2e7d0c9bb26556ce32ced4c43ad9f3df0c..93c0560df791e768277e33999379738e
|
||||
// Paper Start - give clients a longer time to respond to pings as per pre 1.12.2 timings
|
||||
// This should effectively place the keepalive handling back to "as it was" before 1.12.2
|
||||
long currentTime = Util.getMillis();
|
||||
@@ -458,7 +458,7 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic
|
||||
@@ -452,7 +452,7 @@ public class ServerGamePacketListenerImpl implements ServerPlayerConnection, Tic
|
||||
}
|
||||
// Paper end
|
||||
|
||||
@@ -1491,15 +1491,16 @@ index 288c6627906d07c0d223eacd84ae4eb31a349998..9babe636176da3c40598eb5bdac0919a
|
||||
this.seen.add(i);
|
||||
} else {
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/animal/allay/Allay.java b/src/main/java/net/minecraft/world/entity/animal/allay/Allay.java
|
||||
index d9cd71c57cde4cbd7131344ba7760fb6c224c7b6..0f69e1c4e4b14186e7cb99f170ac4d164d2e252c 100644
|
||||
index c960aac9e1dbffe5e765f9adcfacc1966dc29148..c233533fdacb4f5e635267b5fc9fe21bc8b3c51a 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/animal/allay/Allay.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/animal/allay/Allay.java
|
||||
@@ -265,12 +265,12 @@ public class Allay extends PathfinderMob implements InventoryCarrier {
|
||||
|
||||
@@ -266,13 +266,13 @@ public class Allay extends PathfinderMob implements InventoryCarrier {
|
||||
private int behaviorTick = 0; // Pufferfish
|
||||
@Override
|
||||
protected void customServerAiStep() {
|
||||
- this.level.getProfiler().push("allayBrain");
|
||||
+ //this.level.getProfiler().push("allayBrain"); // Purpur
|
||||
if (this.behaviorTick++ % this.activatedPriority == 0) // Pufferfish
|
||||
this.getBrain().tick((ServerLevel) this.level, this);
|
||||
- this.level.getProfiler().pop();
|
||||
- this.level.getProfiler().push("allayActivityUpdate");
|
||||
@@ -1534,15 +1535,16 @@ index 32870e6727d09fbf1c4913ffdf321a278b5b6f64..50f19125fa3dda79a850cfce0ab7c720
|
||||
Optional<Integer> optional = this.getBrain().getMemory(MemoryModuleType.PLAY_DEAD_TICKS);
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/animal/frog/Frog.java b/src/main/java/net/minecraft/world/entity/animal/frog/Frog.java
|
||||
index 04262d31dc0767500f2b22cfe5768a8e24de7af9..82d98615fea97ebc0a333748d47b83beeff923d6 100644
|
||||
index b84effd5e18fee155e731d1a80ba516b86431d3b..989af6f3e0604a342032b308f97c7b863b3b1e40 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/animal/frog/Frog.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/animal/frog/Frog.java
|
||||
@@ -229,12 +229,12 @@ public class Frog extends Animal {
|
||||
|
||||
@@ -230,13 +230,13 @@ public class Frog extends Animal {
|
||||
private int behaviorTick = 0; // Pufferfish
|
||||
@Override
|
||||
protected void customServerAiStep() {
|
||||
- this.level.getProfiler().push("frogBrain");
|
||||
+ //this.level.getProfiler().push("frogBrain"); // Purpur
|
||||
if (this.behaviorTick++ % this.activatedPriority == 0) // Pufferfish
|
||||
this.getBrain().tick((ServerLevel)this.level, this);
|
||||
- this.level.getProfiler().pop();
|
||||
- this.level.getProfiler().push("frogActivityUpdate");
|
||||
@@ -1555,15 +1557,16 @@ index 04262d31dc0767500f2b22cfe5768a8e24de7af9..82d98615fea97ebc0a333748d47b83be
|
||||
}
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/animal/frog/Tadpole.java b/src/main/java/net/minecraft/world/entity/animal/frog/Tadpole.java
|
||||
index 4dca3788a8fa335dc5969bd61cd0658f21e3bff3..88025a051a9e8c21aaf171431a0850c267ca4ca4 100644
|
||||
index 8561d1994cb8c42e69ef77fad16d037c205dad33..5268a56a7967275df63f5a5ddb59219904f9a3c4 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/animal/frog/Tadpole.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/animal/frog/Tadpole.java
|
||||
@@ -115,12 +115,12 @@ public class Tadpole extends AbstractFish {
|
||||
|
||||
@@ -116,13 +116,13 @@ public class Tadpole extends AbstractFish {
|
||||
private int behaviorTick = 0; // Pufferfish
|
||||
@Override
|
||||
protected void customServerAiStep() {
|
||||
- this.level.getProfiler().push("tadpoleBrain");
|
||||
+ //this.level.getProfiler().push("tadpoleBrain"); // Purpur
|
||||
if (this.behaviorTick++ % this.activatedPriority == 0) // Pufferfish
|
||||
this.getBrain().tick((ServerLevel) this.level, this);
|
||||
- this.level.getProfiler().pop();
|
||||
- this.level.getProfiler().push("tadpoleActivityUpdate");
|
||||
@@ -1666,15 +1669,16 @@ index 760015f7a98e70b735707c77472c084d8bd052bb..bc6572b1025d74a7590d7e1cc49132f9
|
||||
PiglinBruteAi.maybePlayActivitySound(this);
|
||||
super.customServerAiStep();
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/monster/warden/Warden.java b/src/main/java/net/minecraft/world/entity/monster/warden/Warden.java
|
||||
index 54959365ffc81d305d07562fc5677cbb9fb97d2b..f8d773d3a2c20ab27c0a250b2f5fc7be05ca9b1b 100644
|
||||
index df55f9a9f684b474a3bff0977069471727b242f4..5dab2eea9e9c50e41c7971daefc3bbe819583207 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/monster/warden/Warden.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/monster/warden/Warden.java
|
||||
@@ -298,9 +298,9 @@ public class Warden extends Monster implements VibrationListener.VibrationListen
|
||||
@@ -299,10 +299,10 @@ public class Warden extends Monster implements VibrationListener.VibrationListen
|
||||
protected void customServerAiStep() {
|
||||
ServerLevel worldserver = (ServerLevel) this.level;
|
||||
|
||||
- worldserver.getProfiler().push("wardenBrain");
|
||||
+ //worldserver.getProfiler().push("wardenBrain"); // Purpur
|
||||
if (this.behaviorTick++ % this.activatedPriority == 0) // Pufferfish
|
||||
this.getBrain().tick(worldserver, this);
|
||||
- this.level.getProfiler().pop();
|
||||
+ //this.level.getProfiler().pop(); // Purpur
|
||||
|
||||
Reference in New Issue
Block a user