From ecba9c643e90c3c111d07d120ed7e60c88cf7040 Mon Sep 17 00:00:00 2001 From: Worive <13164341+Worive@users.noreply.github.com> Date: Fri, 12 Sep 2025 06:39:35 +0200 Subject: [PATCH] fix(ProjectileBase): prevent projectile reversal in water (#208) --- src/main/java/tconstruct/library/entity/ProjectileBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/tconstruct/library/entity/ProjectileBase.java b/src/main/java/tconstruct/library/entity/ProjectileBase.java index b04e54d5..aee4fc10 100644 --- a/src/main/java/tconstruct/library/entity/ProjectileBase.java +++ b/src/main/java/tconstruct/library/entity/ProjectileBase.java @@ -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