Fixed critical movement issue

This commit is contained in:
FlorianMichael 2023-11-29 22:08:23 +01:00
parent 222930467f
commit 554638b60a
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -68,7 +68,7 @@ public abstract class MixinClientPlayerEntity extends AbstractClientPlayerEntity
@Redirect(method = "sendMovementPackets", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/math/MathHelper;square(D)D"))
public double changeMagnitude(double n) {
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_18_2)) {
n = 9.0E-4D;
return 9.0E-4D;
}
return MathHelper.square(n);
}