Update mixin

This commit is contained in:
Sollace 2024-06-06 23:00:49 +01:00
parent 7f89ef646e
commit d11fbf63f2
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -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<Double> info) {
double value = info.getReturnValueD();
private void redirectCameraDistance(float initial, CallbackInfoReturnable<Float> info) {
float value = info.getReturnValueF();
Pony pony = Pony.getManager().getPony(MinecraftClient.getInstance().player);