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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user