Fixed version range

This commit is contained in:
FlorianMichael 2023-11-13 12:57:36 +01:00
parent 37c9112a04
commit a5a338ed52
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -218,7 +218,7 @@ public abstract class MixinClientPlayerEntity extends AbstractClientPlayerEntity
@Redirect(method = "canStartSprinting", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/network/ClientPlayerEntity;isFallFlying()Z"))
public boolean removeElytraMovementCheck(ClientPlayerEntity instance) {
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_19_4)) {
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(VersionEnum.r1_19_3)) {
return false;
}
return instance.isFallFlying();