修改载具加速方法
This commit is contained in:
parent
316fe19c4d
commit
7736a780a8
1 changed files with 3 additions and 1 deletions
|
@ -1168,7 +1168,9 @@ public abstract class VehicleEntity extends Entity {
|
|||
|
||||
@Override
|
||||
public void addDeltaMovement(Vec3 pAddend) {
|
||||
if (pAddend.length() > 0.1) pAddend = pAddend.scale(0);
|
||||
var length = pAddend.length();
|
||||
if (length > 0.1) pAddend = pAddend.scale(0.1 / length);
|
||||
|
||||
super.addDeltaMovement(pAddend);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue