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

Firework damage registered as null.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None

      When trying to cancel firework damage for specific fireworks I was trying to find out how to find the event to disable it in. The FireworkExplodeEvent doesn't have anything in it to stop the damage. So I tried the EntityDamageEvent to check the cause and because when I tried the EntityDamageByEntityEvent and EntityExplodeEvent by they didn't fire. So I tried to check what the cause was and it said it was a Block Explosion damage. So I checked if the EntityDamageByBlockEvent fired and it did. So I wanted to get the damager but when I changed what the damager was it was null. So I am thinking its not suppose to be null but instead the firework entity. Maybe the firework is being removed before the event fires but thats the only thing I can think of. So I wanted to post this as a bug report since I think the event should be called in the EntityDamageByEntityEvent instead of EntityDamageByBlockEvent and it shouldn't be null.

            Unassigned Unassigned
            BadBones69 Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: