mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
fix(ProjectileBase): prevent projectile reversal in water (#208)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user