removed wrong fix (I have no idea what I did there)

This commit is contained in:
FlorianMichael 2023-03-23 15:47:18 +01:00
parent d18241bc9f
commit 225518f9a4

View File

@ -91,15 +91,6 @@ public abstract class MixinPlayerEntity extends LivingEntity {
}
}
@ModifyConstant(method = "getActiveEyeHeight", constant = @Constant(floatValue = 1.27f))
private float modifySneakEyeHeight(float prevEyeHeight) {
if (ProtocolHack.getTargetVersion().isNewerThan(ProtocolVersion.v1_19_1)) {
return prevEyeHeight;
} else {
return 1.54f;
}
}
@Inject(method = "getAttackCooldownProgress", at = @At("HEAD"), cancellable = true)
private void injectGetAttackCooldownProgress(CallbackInfoReturnable<Float> ci) {
if (ProtocolHack.getTargetVersion().isOlderThanOrEqualTo(ProtocolVersion.v1_8)) {