Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-7364

Player's isSprinting should not be disabled when this player attacks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit version 3760-Spigot-7d7b241-1f2dd8e (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT)
    • Yes

      In Vanilla server, player keeps sprinting after attacking other entities, but in Bukkit server the sprinting will be cancelled.

      But there is also a feature in Vanilla server is that, player can attack with strong knock back for once since he starts sprinting. If he stops sprinting and starts sprinting again, he can make another strong knock back. Bukkit has realized this feature by disable player's sprinting, but its not correct. You can remove isSprinting judgement in attack() method and add a new boolean called "isStrongKnockback" to it (When isStrongKnockback is true, player can make a strong knock back and then isStrongKnockback will be disabled. isStrongKnockback will be set to true again when player resets his sprinting state. (Also add a getter and a setter to this boolean plz)

            Unassigned Unassigned
            LoliColleen Kami Rori
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: