fix(ProjectileBase): prevent projectile reversal in water (#208)

This commit is contained in:
Worive authored and GitHub committed 2025-09-12 06:39:35 +02:00
1 parent 479886fa8d
commit ecba9c643e
1 file changed
+2 -2
@@ -501,8 +501,8 @@ public abstract class ProjectileBase extends EntityArrow implements IEntityAddit
this.motionZ);
}
// more slowdown in water
slowdown = 1d - 20d * getSlowdown();
// more slowdown in water, clamped at 0 to prevent reversal
slowdown = Math.max(0, 1d - 20d * getSlowdown());
}
// phshshshshshs