This commit is contained in:
techno-sam 2024-04-04 19:55:51 +00:00 committed by GitHub
commit b1bcd4cd07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -266,7 +266,7 @@ public class Navigation {
if (targetDistance < 10) {
double target = topSpeed * ((targetDistance) / 10);
if (target < Math.abs(train.speed)) {
train.speed += (target - Math.abs(train.speed)) * .5f * speedMod;
train.speed += (target - Math.abs(train.speed)) * .5f * Math.signum(train.speed);
return;
}
}