mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-19 14:59:25 +00:00
Updated Upstream (Purpur)
Upstream has released updates that appear to apply and compile correctly Purpur Changes: PurpurMC/Purpur@dfd8a7ad Fix phantom going at high speed when ridden (#1680) PurpurMC/Purpur@04a9045d Fix phantom high speed by modifying the speed: Part 2 (#1682) PurpurMC/Purpur@175bb181 [ci/skip] micro opt when applying block friction on flying ridable mobs PurpurMC/Purpur@d0b705e4 Updated Upstream (Paper)
This commit is contained in:
@@ -1479,7 +1479,7 @@ index 3c7159d0981c948e71a5612ba4083accb5849ed4..5f2c27800f047f128857044493a6d932
|
||||
for (Entity entity : passengerEntity.getPassengers()) {
|
||||
this.tickPassenger(passengerEntity, entity, isActive); // Paper - EAR 2
|
||||
diff --git a/net/minecraft/server/level/ServerPlayer.java b/net/minecraft/server/level/ServerPlayer.java
|
||||
index 9415194e5d6aa190c9f42c3bf7599aaa5971c1eb..c7d081aff58170251d075a58d5e1345fc1bda9f8 100644
|
||||
index 86c3bb813c58a5aaefad077605bf8296dd7d9c05..95aabca0b1f2f3762df52e9a09afe19ed1939209 100644
|
||||
--- a/net/minecraft/server/level/ServerPlayer.java
|
||||
+++ b/net/minecraft/server/level/ServerPlayer.java
|
||||
@@ -106,8 +106,6 @@ import net.minecraft.util.HashOps;
|
||||
@@ -4134,7 +4134,7 @@ index ce3e5ec505ac37c820436bcf7c7d6452ff015f70..f8b37b4ce54afd61a72e9d18ac323540
|
||||
}
|
||||
}
|
||||
diff --git a/net/minecraft/world/entity/LivingEntity.java b/net/minecraft/world/entity/LivingEntity.java
|
||||
index e12cbd76889acdca25f5a91f6eead1205e7b10dd..e3babfa292556c5f5a208536a3f869dc71b82498 100644
|
||||
index 70fc96a273b74ebb8b665c6808d8f2f3a0ee6039..71cf5561df3f0d9b77cc52720b21a7a418d90a21 100644
|
||||
--- a/net/minecraft/world/entity/LivingEntity.java
|
||||
+++ b/net/minecraft/world/entity/LivingEntity.java
|
||||
@@ -69,8 +69,6 @@ import net.minecraft.tags.FluidTags;
|
||||
@@ -4163,7 +4163,7 @@ index e12cbd76889acdca25f5a91f6eead1205e7b10dd..e3babfa292556c5f5a208536a3f869dc
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -3357,11 +3352,7 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||
@@ -3372,11 +3367,7 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||
f1 = this.getYRot();
|
||||
}
|
||||
|
||||
@@ -4175,7 +4175,7 @@ index e12cbd76889acdca25f5a91f6eead1205e7b10dd..e3babfa292556c5f5a208536a3f869dc
|
||||
|
||||
// Paper start - stop large pitch and yaw changes from crashing the server
|
||||
this.yRotO += Math.round((this.getYRot() - this.yRotO) / 360.0F) * 360.0F;
|
||||
@@ -3373,7 +3364,6 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||
@@ -3388,7 +3379,6 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||
this.yHeadRotO += Math.round((this.yHeadRot - this.yHeadRotO) / 360.0F) * 360.0F;
|
||||
// Paper end - stop large pitch and yaw changes from crashing the server
|
||||
|
||||
@@ -4183,7 +4183,7 @@ index e12cbd76889acdca25f5a91f6eead1205e7b10dd..e3babfa292556c5f5a208536a3f869dc
|
||||
if (this.isFallFlying()) {
|
||||
this.fallFlyTicks++;
|
||||
} else {
|
||||
@@ -3549,21 +3539,15 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||
@@ -3564,21 +3554,15 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||
}
|
||||
|
||||
this.setDeltaMovement(d, d1, d2);
|
||||
@@ -4205,7 +4205,7 @@ index e12cbd76889acdca25f5a91f6eead1205e7b10dd..e3babfa292556c5f5a208536a3f869dc
|
||||
if (this.jumping && this.isAffectedByFluids()) {
|
||||
double fluidHeight;
|
||||
if (this.isInLava()) {
|
||||
@@ -3592,8 +3576,6 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||
@@ -3607,8 +3591,6 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||
this.noJumpDelay = 0;
|
||||
}
|
||||
|
||||
@@ -4214,7 +4214,7 @@ index e12cbd76889acdca25f5a91f6eead1205e7b10dd..e3babfa292556c5f5a208536a3f869dc
|
||||
if (this.isFallFlying()) {
|
||||
this.updateFallFlying();
|
||||
}
|
||||
@@ -3618,9 +3600,7 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||
@@ -3633,9 +3615,7 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||
this.calculateEntityAnimation(this instanceof FlyingAnimal);
|
||||
}
|
||||
|
||||
@@ -4224,7 +4224,7 @@ index e12cbd76889acdca25f5a91f6eead1205e7b10dd..e3babfa292556c5f5a208536a3f869dc
|
||||
if ((!this.isInPowderSnow || !this.canFreeze()) && !this.freezeLocked) { // Paper - Freeze Tick Lock API
|
||||
this.setTicksFrozen(Math.max(0, this.getTicksFrozen() - 2));
|
||||
}
|
||||
@@ -3630,18 +3610,14 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||
@@ -3645,18 +3625,14 @@ public abstract class LivingEntity extends Entity implements Attackable, Waypoin
|
||||
if (this.tickCount % 40 == 0 && this.isFullyFrozen() && this.canFreeze()) {
|
||||
this.hurtServer(serverLevel, this.damageSources().freeze(), 1.0F);
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ index 2d24d03bbdb5ee0d862cbfff2219f58afffafe12..950b284cb3b4488a794e6c6f936f55ea
|
||||
|
||||
protected boolean addEntity(final Entity entity, final boolean fromDisk, final boolean event) {
|
||||
diff --git a/ca/spottedleaf/moonrise/patches/chunk_system/player/RegionizedPlayerChunkLoader.java b/ca/spottedleaf/moonrise/patches/chunk_system/player/RegionizedPlayerChunkLoader.java
|
||||
index dc2b3ccf7810731c0e2c90e5a476c1c8203a1fb7..636ba1c5fef58aabd5b8d6c6a8d183584b9c8be1 100644
|
||||
index dc2b3ccf7810731c0e2c90e5a476c1c8203a1fb7..7c223e99dfc8b67b3c953d9c741ced4a2c485343 100644
|
||||
--- a/ca/spottedleaf/moonrise/patches/chunk_system/player/RegionizedPlayerChunkLoader.java
|
||||
+++ b/ca/spottedleaf/moonrise/patches/chunk_system/player/RegionizedPlayerChunkLoader.java
|
||||
@@ -191,13 +191,13 @@ public final class RegionizedPlayerChunkLoader {
|
||||
@@ -314,15 +314,6 @@ index dc2b3ccf7810731c0e2c90e5a476c1c8203a1fb7..636ba1c5fef58aabd5b8d6c6a8d18358
|
||||
TickThread.ensureTickThread(this.player, "Cannot add player asynchronously");
|
||||
if (this.removed) {
|
||||
throw new IllegalStateException("Removing removed player chunk loader");
|
||||
@@ -1091,7 +1097,7 @@ public final class RegionizedPlayerChunkLoader {
|
||||
}
|
||||
|
||||
public LongOpenHashSet getSentChunksRaw() {
|
||||
- return this.sentChunks;
|
||||
+ return new LongOpenHashSet(this.sentChunks); // DivineMC - Chunk System optimization
|
||||
}
|
||||
}
|
||||
}
|
||||
diff --git a/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/ChunkHolderManager.java b/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/ChunkHolderManager.java
|
||||
index 6ce4a98e4d3b633e3c87944c23b6b3f0ff58f159..c10e31017e7dfab348e9cc45c28d3858863ac0b1 100644
|
||||
--- a/ca/spottedleaf/moonrise/patches/chunk_system/scheduling/ChunkHolderManager.java
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
int currentSwingDuration = this.getCurrentSwingDuration();
|
||||
if (this.swinging) {
|
||||
this.swingTime++;
|
||||
@@ -3264,7 +_,13 @@
|
||||
@@ -3279,7 +_,13 @@
|
||||
}
|
||||
|
||||
protected float getFlyingSpeed() {
|
||||
@@ -32,7 +32,7 @@
|
||||
}
|
||||
|
||||
public float getSpeed() {
|
||||
@@ -3713,6 +_,7 @@
|
||||
@@ -3728,6 +_,7 @@
|
||||
protected void updateFallFlying() {
|
||||
this.checkFallDistanceAccumulation();
|
||||
if (!this.level().isClientSide) {
|
||||
|
||||
@@ -2,7 +2,7 @@ group = org.bxteam.divinemc
|
||||
version=1.21.6-R0.1-SNAPSHOT
|
||||
|
||||
mcVersion=1.21.6
|
||||
purpurRef=a4776d7bcd8c6a907674876756ba48d05261a360
|
||||
purpurRef=d0b705e49c19d6073e62919ed38c07b8a2c9a34b
|
||||
experimental=false
|
||||
|
||||
org.gradle.configuration-cache=true
|
||||
|
||||
Reference in New Issue
Block a user