Skip to content

Commit

Permalink
#58 compat: figura (somehow)
Browse files Browse the repository at this point in the history
  • Loading branch information
der-fruhling committed Jun 4, 2024
1 parent 358578a commit 7fc139f
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 7fc139f

Please sign in to comment.