Skip to content

Commit

Permalink
chore: comment cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBv committed Dec 25, 2023
1 parent 939a9c1 commit e5e427b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,7 @@ public void travel(@NotNull Vec3 pTravelVector) {
// Note: when motion is handled by the client no server side setDeltaMovement() should be called
// otherwise the movement will halt
// Todo: move wrongly fix
float flyingSpeed; // FIXME :: Why overlay the flyingSpeed variable from LivingEntity

if (allowLocalMotionControl && this.getControllingPassenger() != null) {
LivingEntity rider = this.getControllingPassenger();
if (rider == null) {
Expand All @@ -2085,8 +2085,7 @@ public void travel(@NotNull Vec3 pTravelVector) {
double strafing = rider.xxa;
double vertical = 0;
float speed = (float) this.getAttributeValue(Attributes.MOVEMENT_SPEED);
// Bigger difference in speed for young and elder dragons
// float airSpeedModifier = (float) (5.2f + 1.0f * Mth.map(Math.min(this.getAgeInDays(), 125), 0, 125, 0f, 1.5f));

float airSpeedModifier = (float) (5.2f + 1.0f * Mth.map(speed, this.minimumSpeed, this.maximumSpeed, 0f, 1.5f));
// Apply speed mod
speed *= airSpeedModifier;
Expand Down

0 comments on commit e5e427b

Please sign in to comment.