From d11fbf63f267d65b66edc786833988dcec8ca7aa Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 6 Jun 2024 23:00:49 +0100 Subject: [PATCH] Update mixin --- .../java/com/minelittlepony/client/mixin/MixinCamera.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/minelittlepony/client/mixin/MixinCamera.java b/src/main/java/com/minelittlepony/client/mixin/MixinCamera.java index 17b27dc0..1a2e7f23 100644 --- a/src/main/java/com/minelittlepony/client/mixin/MixinCamera.java +++ b/src/main/java/com/minelittlepony/client/mixin/MixinCamera.java @@ -12,11 +12,11 @@ import net.minecraft.client.render.Camera; @Mixin(Camera.class) abstract class MixinCamera { - @Inject(method = "clipToSpace(D)D", + @Inject(method = "clipToSpace(F)F", at = @At("RETURN"), cancellable = true) - private void redirectCameraDistance(double initial, CallbackInfoReturnable info) { - double value = info.getReturnValueD(); + private void redirectCameraDistance(float initial, CallbackInfoReturnable info) { + float value = info.getReturnValueF(); Pony pony = Pony.getManager().getPony(MinecraftClient.getInstance().player);