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

Damageable.damage(0) does nothing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • None

      Calling Damageable.damage(0) doesn't play the damage animation anymore.

      Temporary workaround :

      damageable.damage(0.0000000000000000000001);
      
      //Or
      
      double zeroDamage = 0.0000000000000000000001;
      damageable.damage(zeroDamage);
      damageable.setHealth(player.getHealth() + zeroDamage);
      

            Unassigned Unassigned
            ImAFlyingPancake ImAFlyingPancake
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: