From 499415fb50b1946d1d436d15be9e1e12d097cbf4 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Fri, 9 Oct 2026 02:17:05 +0200 Subject: [PATCH] Simplify the trident's drag Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game/trident.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/crates/horizon-client/src/game/trident.rs b/crates/horizon-client/src/game/trident.rs index a73ff319b..e2cd00e34 100644 --- a/crates/horizon-client/src/game/trident.rs +++ b/crates/horizon-client/src/game/trident.rs @@ -296,15 +296,8 @@ impl Game<'_> { } } if !t.in_ground { - let (x, y, z) = ( - t.position.x.floor() as i32, - t.position.y.floor() as i32, - t.position.z.floor() as i32, - ); - let water = self.res.facts.get(self.world.block(x, y, z)).fluid - == horizon_client::blocks::Fluid::Water; - // getWaterInertia 0.99, air 0.99, gravity 0.05. - let drag = if water { 0.99 } else { 0.99 }; + // A trident's water inertia (0.99) equals the air drag; gravity 0.05. + let drag = 0.99; t.velocity = Vec3::new( t.velocity.x * drag, t.velocity.y * drag - 0.05,