From e9ce5083ba614149aa6163a890c5800dcbe07592 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 11 Apr 2026 22:12:51 +0200 Subject: [PATCH] Include diving in swimming check --- src/runtime-three/player-controller-telemetry.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime-three/player-controller-telemetry.ts b/src/runtime-three/player-controller-telemetry.ts index 6ef51287..72d28ad6 100644 --- a/src/runtime-three/player-controller-telemetry.ts +++ b/src/runtime-three/player-controller-telemetry.ts @@ -79,7 +79,9 @@ export function resolveRuntimePlayerMovementHooks(options: { options.signals.startedFalling || options.locomotionState.airborneKind === "falling", landing: options.signals.landed, - swimming: options.locomotionState.locomotionMode === "swimming", + swimming: + options.locomotionState.locomotionMode === "swimming" || + options.locomotionState.locomotionMode === "diving", underwaterAmount }, audio: {