Skip to content

Commit

Permalink
Simplify it more.
Browse files Browse the repository at this point in the history
  • Loading branch information
lowercasebtw committed Dec 14, 2024
1 parent 780bdd4 commit 545ad8c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/me/mixces/animatium/util/PlayerUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.Arm;
import net.minecraft.util.Hand;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.Vec3d;

public class PlayerUtils {
Expand All @@ -18,7 +17,6 @@ public static int handMultiplier(ClientPlayerEntity player, EntityRenderDispatch
}

public static Vec3d lerpPlayerWithEyeHeight(PlayerEntity entity, float tickDelta, float eyeHeight) {
Vec3d lerpedPos = entity.getLerpedPos(tickDelta);
return new Vec3d(lerpedPos.x, lerpedPos.y + eyeHeight, lerpedPos.z);
return entity.getLerpedPos(tickDelta).add(0, eyeHeight, 0);
}
}

0 comments on commit 545ad8c

Please sign in to comment.