Fishing line: the hand side is a float, as in vanilla

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-15 11:55:30 +02:00
parent 61a127a2a2
commit ce4d520f55
+1 -1
View File
@@ -629,7 +629,7 @@ impl Game<'_> {
fn rod_hand_position(&self, alpha: f64, size: [u32; 2]) -> Option<glam::DVec3> {
let p = self.player.as_ref()?;
let right_arm = self.main_hand_rod() != self.settings.main_hand_left;
let invert = if right_arm { 1.0 } else { -1.0 };
let invert: f32 = if right_arm { 1.0 } else { -1.0 };
let swing = trig::sin(f64::from(
self.swing.animation(alpha as f32).sqrt() * std::f32::consts::PI,
));