fix(ymir): bound quad earlyBreak plant step to prevent 1-tick downhill foot jump

This commit is contained in:
Meta Vens 2026-12-06 01:02:01 +01:00
commit 3d635ca771

View file

@ -1521,7 +1521,7 @@ namespace RustToDust.Ymir
if (!IsInGroup(n, i, ws.StanceGroup))
{
Vector3 plantSource = ws.SwingTargetSole[i];
float maxPlantStep = MathF.Max(1.15f * scale, horizSpeed * dt * 2.2f);
float maxPlantStep = MathF.Max(0.65f * scale, horizSpeed * dt * 2.2f);
bool earlyQuadClamp = earlyBreak && !(n == 2 && scale >= 0.70f);
if (earlyBreak)
{