mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-15 10:45:35 +01:00
Fixed critical movement issue
This commit is contained in:
parent
222930467f
commit
554638b60a
@ -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"))
|
@Redirect(method = "sendMovementPackets", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/math/MathHelper;square(D)D"))
|
||||||
public double changeMagnitude(double n) {
|
public double changeMagnitude(double n) {
|
||||||
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_18_2)) {
|
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_18_2)) {
|
||||||
n = 9.0E-4D;
|
return 9.0E-4D;
|
||||||
}
|
}
|
||||||
return MathHelper.square(n);
|
return MathHelper.square(n);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user