From 7fc139f475a6928a87853314ff6744feef0c03d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?der=5Ffr=C3=BChling?= Date: Tue, 4 Jun 2024 13:54:47 -0700 Subject: [PATCH] #58 compat: figura (somehow) --- .../trainperspective/mixin/CameraMixin.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/net/derfruhling/minecraft/create/trainperspective/mixin/CameraMixin.java b/common/src/main/java/net/derfruhling/minecraft/create/trainperspective/mixin/CameraMixin.java index 28f612d..46f8e3f 100644 --- a/common/src/main/java/net/derfruhling/minecraft/create/trainperspective/mixin/CameraMixin.java +++ b/common/src/main/java/net/derfruhling/minecraft/create/trainperspective/mixin/CameraMixin.java @@ -10,6 +10,7 @@ import net.minecraft.network.chat.Component; import net.minecraft.util.Mth; import net.minecraft.world.entity.Entity; +import net.minecraft.world.level.BlockGetter; import org.joml.Quaternionf; import org.spongepowered.asm.mixin.*; import org.spongepowered.asm.mixin.injection.At; @@ -49,8 +50,11 @@ private float modifyRoll(float original) { public void modifyRotations(Camera instance, float y, float x, - @Local(argsOnly = true, ordinal = 0) boolean isThirdPerson, - @Local(argsOnly = true) float f) { + BlockGetter blockGetter, + Entity entity, + boolean isThirdPerson, + boolean bl2, + float f) { if(entity instanceof AbstractClientPlayer player && Conditional.shouldApplyPerspectiveTo(entity) && Conditional.shouldApplyLeaning() @@ -81,8 +85,11 @@ public void modifyPosition(Camera instance, double x, double y, double z, - @Local(argsOnly = true, ordinal = 0) boolean isThirdPerson, - @Local(argsOnly = true) float f) { + BlockGetter blockGetter, + Entity entity, + boolean isThirdPerson, + boolean bl2, + float f) { if(entity instanceof AbstractClientPlayer player && Conditional.shouldApplyPerspectiveTo(entity) && Conditional.shouldApplyLeaning()