mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-06-02 18:59:19 +02:00
Merge 557383d103
into 26fc820c69
This commit is contained in:
commit
b1bcd4cd07
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue