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()