Firework damage registered as null.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: 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.

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

              Created:
              Updated:
              Resolved: