修改载具加速方法

This commit is contained in:
Light_Quanta 2025-06-21 19:41:12 +08:00
parent 316fe19c4d
commit 7736a780a8
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -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);
}