Fix Minecart speed cap on rail being initialized to 0 (#7315)
This commit is contained in:
parent
45f8dc5245
commit
c382527ba2
1 changed files with 3 additions and 3 deletions
|
@ -207,9 +207,9 @@
|
||||||
+ private boolean canUseRail = true;
|
+ private boolean canUseRail = true;
|
||||||
+ @Override public boolean canUseRail() { return canUseRail; }
|
+ @Override public boolean canUseRail() { return canUseRail; }
|
||||||
+ @Override public void setCanUseRail(boolean value) { this.canUseRail = value; }
|
+ @Override public void setCanUseRail(boolean value) { this.canUseRail = value; }
|
||||||
+ private float currentSpeedOnRail;
|
+ private float currentSpeedCapOnRail = getMaxCartSpeedOnRail();
|
||||||
+ @Override public float getCurrentCartSpeedCapOnRail() { return currentSpeedOnRail; }
|
+ @Override public float getCurrentCartSpeedCapOnRail() { return currentSpeedCapOnRail; }
|
||||||
+ @Override public void setCurrentCartSpeedCapOnRail(float value) { currentSpeedOnRail = Math.min(value, getMaxCartSpeedOnRail()); }
|
+ @Override public void setCurrentCartSpeedCapOnRail(float value) { currentSpeedCapOnRail = Math.min(value, getMaxCartSpeedOnRail()); }
|
||||||
+ private float maxSpeedAirLateral = DEFAULT_MAX_SPEED_AIR_LATERAL;
|
+ private float maxSpeedAirLateral = DEFAULT_MAX_SPEED_AIR_LATERAL;
|
||||||
+ @Override public float getMaxSpeedAirLateral() { return maxSpeedAirLateral; }
|
+ @Override public float getMaxSpeedAirLateral() { return maxSpeedAirLateral; }
|
||||||
+ @Override public void setMaxSpeedAirLateral(float value) { maxSpeedAirLateral = value; }
|
+ @Override public void setMaxSpeedAirLateral(float value) { maxSpeedAirLateral = value; }
|
||||||
|
|
Loading…
Reference in a new issue