From 036f3e083b392388b69bc67ca0d31f03dffd89ad Mon Sep 17 00:00:00 2001 From: FlorianMichael <60033407+FlorianMichael@users.noreply.github.com> Date: Fri, 19 Apr 2024 04:40:27 +0200 Subject: [PATCH] Update fabric loader and api --- gradle.properties | 4 ++-- .../mixin/fixes/minecraft/entity/MixinLivingEntity.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 23fa27d9..d468a0d6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,8 +5,8 @@ org.gradle.parallel=true # Minecraft/Fabric minecraft_version=1.20.4 yarn_mappings=1.20.4+build.3 -loader_version=0.15.7 -fabric_api_version=0.96.11+1.20.4 +loader_version=0.15.10 +fabric_api_version=0.97.0+1.20.4 # Project Details mod_version=3.1.1-SNAPSHOT diff --git a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/entity/MixinLivingEntity.java b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/entity/MixinLivingEntity.java index 933a32c8..75777c3d 100644 --- a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/entity/MixinLivingEntity.java +++ b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/fixes/minecraft/entity/MixinLivingEntity.java @@ -189,7 +189,7 @@ public abstract class MixinLivingEntity extends Entity { @Redirect(method = "tick", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/math/MathHelper;abs(F)F")) private float alwaysRotateWhenWalkingBackwards(float value) { - if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_12)) { + if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_11_1)) { return 0F; } else { return MathHelper.abs(value);