Skip to content

Cancelling FireworkExplodeEvent does not remove the Firework entity #12266

@Esophose

Description

@Esophose

Expected behavior

As per the javadocs, setting the FireworkExplodeEvent to cancelled = true should remove the firework entity

Observed/Actual behavior

The firework entity remains, and continues to call the FireworkExplodeEvent for every tick that it continues living. It seems to live an arbitrary amount of ticks longer.

Steps/models to reproduce

@EventHandler(priority = EventPriority.HIGH, ignoreCancelled = true)
public void onFireworkExplode(FireworkExplodeEvent event) {
    event.setCancelled(true);
    Bukkit.getServer().getLogger().warning("kaboom!");
}

Plugin and Datapack List

> plugins
[23:25:56 INFO]: ℹ Server Plugins (1):
[23:25:56 INFO]: Bukkit Plugins:
[23:25:56 INFO]:  - RoseParticles
> datapack list
[23:25:58 INFO]: There are 3 data pack(s) enabled: [vanilla (built-in)], [file/bukkit (world)], [paper (built-in)]
[23:25:58 INFO]: There are no more data packs available

Paper version

This server is running Paper version 1.21.4-207-main@1a7288a (2025-03-09T18:15:59Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are running the latest version

Other

https://gyazo.com/32512995d80672ca2ceaf5a5b32a9e29

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: apistatus: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.version: 1.21.4Game version 1.21.4

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions