Always reference newest version in injection names

This commit is contained in:
FlorianMichael 2024-06-22 15:05:44 +02:00
parent b966022f74
commit 4f1f044837
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ import java.util.concurrent.CompletableFuture;
* - Particle handling has slightly changed
*
* TODO | Port 1.21
* - LocalPlayer#aiStep nether portal logic and sneaking attribute
* - LocalPlayer#aiStep nether portal logic
* - Camera logic got changed again
* - ExtraCodecs#QUATERNIONF_COMPONENTS
* - Armadilllo removedd shouldPanic

View File

@ -92,7 +92,7 @@ public abstract class MixinLivingEntity extends Entity {
}
@Inject(method = "getVelocityMultiplier", at = @At("HEAD"), cancellable = true)
private void getVelocityMultiplier1_20_5(CallbackInfoReturnable<Float> cir) {
private void getVelocityMultiplier1_20_6(CallbackInfoReturnable<Float> cir) {
if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_20_5)) {
cir.setReturnValue(this.isOnSoulSpeedBlock() && EnchantmentUtil.getEquipmentLevel(Enchantments.SOUL_SPEED, (LivingEntity) (Object) this) > 0 ? 1F : super.getVelocityMultiplier());
}