Wind charge does not trigger ProjectileLaunchEvent
Expected behavior
Thowing a wind charge should trigger a ProjectileLaunchEvent, as does throwing a snowball or an ender pearl, which are all projectiles.
Observed/Actual behavior
The ProjectileLaunchEvent is not triggered, only the parent EntitySpawnEvent is triggered. Despite being a projectile.
Steps/models to reproduce
- Create a plugin which prints something on
ProjectileLaunchEventandEntitySpawnEvent - Throw a wind charge
- Only
EntitySpawnEventis triggered
Plugin and Datapack List
Bukkit Plugins:
- CoreProtect (which has a listener for
ProjectileLaunchEvent) - Custom plugin
Datapacks:
- None
Paper version
1.21.11-99-81b9122 (MC: 1.21.11)
Other
No response
[13:42:17 INFO]: [Paper-Test-Plugin] org.bukkit.event.entity.ProjectileLaunchEvent@1b43558a[cancelled=false,cancelled=false,entity=CraftWindCharge{uuid=91da874b-22f4-44f6-a3e4-f551a859b232},isAsync=false,name=
cannot reproduce
Same here tested with ProjectileLaunchEvent and also PlayerLaunchProjectileEvent and the two events are fired.