9
0
mirror of https://github.com/SparklyPower/SparklyPaper.git synced 2025-12-20 07:29:33 +00:00

Add SparklyPower's LegacyNBTRemapper

This commit is contained in:
MrPowerGamerBR
2025-06-17 13:57:50 -03:00
parent 682ec2f942
commit 627719c3da
7 changed files with 111 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
--- a/net/minecraft/server/level/ServerEntity.java
+++ b/net/minecraft/server/level/ServerEntity.java
@@ -205,6 +_,7 @@
@@ -209,6 +_,7 @@
if (this.entity.hasImpulse || this.trackDelta || this.entity instanceof LivingEntity && ((LivingEntity)this.entity).isFallFlying()) {
Vec3 deltaMovement = this.entity.getDeltaMovement();
@@ -8,7 +8,7 @@
double d = deltaMovement.distanceToSqr(this.lastSentMovement);
if (d > 1.0E-7 || d > 0.0 && deltaMovement.lengthSqr() == 0.0) {
this.lastSentMovement = deltaMovement;
@@ -222,6 +_,7 @@
@@ -226,6 +_,7 @@
this.broadcast.accept(new ClientboundSetEntityMotionPacket(this.entity.getId(), this.lastSentMovement));
}
}