Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-208844

Bees don't seem to use their generic.flying_speed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.16.4
    • Plausible
    • (Unassigned)

      I found a strange behavior while playing with custom bees with Forge.

      I looked for clues and found the same thing in the genuine code.

      The attribute FLYING_SPEED seems to only be used in the method tick() of the class FlyingMoveControl if the entity is not onGround, which seems OK.

      tick() sets the field speed of the LivingEntity according to it via setMoveSpeed().

      But later, in the method getFrictionInfluencedSpeed() of LivingEntity, if the entity is not onGround, it uses this time the field flyingSpeed.

      flyingSpeed seems to never change and be constant to the instanciation value of 0.02F.

       

      Maybe the method tick() should set the field flyingSpeed instead of speed if the entity is not onGround because if I'm not mistaken, it seems that the FLYING_SPEED is actually never used.

            Unassigned Unassigned
            Lynzel Lynzel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: