From 79f545a8706e6be86fdbdf79c31e1117d6c428e3 Mon Sep 17 00:00:00 2001 From: bluegreensea Date: Mon, 17 Jun 2024 22:38:09 +0800 Subject: [PATCH] Update lithium compat --- .../injection/mixin/compat/lithium/MixinEntity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/compat/lithium/MixinEntity.java b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/compat/lithium/MixinEntity.java index f7713bc8..5899aec0 100644 --- a/src/main/java/de/florianmichael/viafabricplus/injection/mixin/compat/lithium/MixinEntity.java +++ b/src/main/java/de/florianmichael/viafabricplus/injection/mixin/compat/lithium/MixinEntity.java @@ -27,12 +27,12 @@ import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Redirect; // Lithium is overriding the sorting with an optimized implementation -// https://github.com/CaffeineMC/lithium-fabric/blob/develop/src/main/java/me/jellysquid/mods/lithium/mixin/entity/collisions/movement/EntityMixin.java#L54 +// https://github.com/CaffeineMC/lithium-fabric/blob/develop/src/main/java/me/jellysquid/mods/lithium/mixin/entity/collisions/movement/EntityMixin.java#L84 @Mixin(value = Entity.class, priority = 1001 /* Lithium has to be applied first */) public abstract class MixinEntity { @SuppressWarnings({"MixinAnnotationTarget", "UnresolvedMixinReference"}) - @Redirect(method = "lithiumCollideMultiAxisMovement", at = @At(value = "INVOKE", target = "Ljava/lang/Math;abs(D)D", ordinal = 0), remap = false) + @Redirect(method = "lithium$CollideMovement", at = @At(value = "INVOKE", target = "Ljava/lang/Math;abs(D)D", ordinal = 0), remap = false) private static double alwaysSortYXZ(double a) { if (ProtocolTranslator.getTargetVersion().olderThanOrEqualTo(ProtocolVersion.v1_13_2)) { return Double.MAX_VALUE;