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

Cancelling EntityDamageByEntityEvent still applies fire ticks with arrow flame enchantment

XMLWordPrintable

    • 1.13.2 git-Spigot-e5e5c7c-6430d9c
    • Yes

      Even after cancelling the EntityDamageByEntityEvent, entities are still inflicted fire ticks when damaged by arrows enchanted with flame. Tested on a server with no other plugins but this one. I expect the flame effect to not apply because spectral arrows and tipped arrows do not apply their effects when cancelled. All code in the plugin is included below as a simple test case:

      public void onEnable() {
          Bukkit.getPluginManager().registerEvents(this, this);
      }    
      
      @EventHandler
      public void onDamage(EntityDamageByEntityEvent e) {
          e.setCancelled(true);
      }
      

      See attached video for example.

       

            Unassigned Unassigned
            Esophose Esophose
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: