9
0
mirror of https://github.com/SparklyPower/SparklyPaper.git synced 2025-12-20 23:49:24 +00:00

Update to Paper 1.21.11

This commit is contained in:
MrPowerGamerBR
2025-12-10 13:24:13 -03:00
parent caec522f5e
commit 8428d32936
25 changed files with 169 additions and 151 deletions

View File

@@ -2,7 +2,7 @@
+++ b/net/minecraft/server/level/ServerEntity.java
@@ -197,6 +_,7 @@
if (this.entity.hasImpulse || this.trackDelta || this.entity instanceof LivingEntity && ((LivingEntity)this.entity).isFallFlying()) {
if (this.entity.needsSync || this.trackDelta || this.entity instanceof LivingEntity && ((LivingEntity)this.entity).isFallFlying()) {
Vec3 deltaMovement = this.entity.getDeltaMovement();
+ if (deltaMovement != this.lastSentMovement) { // SparklyPaper start - skip distanceToSqr call in ServerEntity#sendChanges if the delta movement hasn't changed
double d = deltaMovement.distanceToSqr(this.lastSentMovement);