修复载具能被撅飞的问题(恼
This commit is contained in:
parent
9371e4914a
commit
bd8327336b
1 changed files with 12 additions and 0 deletions
|
@ -1022,6 +1022,18 @@ public abstract class VehicleEntity extends Entity {
|
||||||
return data().mass();
|
return data().mass();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setDeltaMovement(Vec3 pDeltaMovement) {
|
||||||
|
if (pDeltaMovement.length() > 8) return;
|
||||||
|
super.setDeltaMovement(pDeltaMovement);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void addDeltaMovement(Vec3 pAddend) {
|
||||||
|
if (pAddend.length() > 0.1) return;
|
||||||
|
super.addDeltaMovement(pAddend);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 玩家在载具上的灵敏度调整
|
* 玩家在载具上的灵敏度调整
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue