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

Cancelling EntityCombustEvent does not prevent items from combusting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • [11:34:59] [Server thread/INFO]: This server is running CraftBukkit version 3682-Spigot-41150f3-dbc32ff (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT)
    • Yes

      When cancelling EntityCombustEvent it should not combust.
      It should also be called when throwing items into Lava, but does not currently

      @EventHandler
      public void test(EntityCombustEvent event) {
          if (event.getEntity() instanceof Item) {
              event.setCancelled(true);
              Bukkit.broadcastMessage("EntityCombustEvent");
          }
      }
      
      @EventHandler
      public void test(EntityCombustByBlockEvent event) {
          if (event.getEntity() instanceof Item) {
              event.setCancelled(true);
              Bukkit.broadcastMessage("EntityCombustByBlockEvent");
          }
      } 

      https://user-images.githubusercontent.com/62521371/226876129-a23ab38c-f148-4835-965c-d7cffd8609dc.mp4

            Unassigned Unassigned
            boyboy Sivert Paulsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: