[SPIGOT-1956] Cancelling ProjectileLaunchEvent wont stop item from being taken Created: 17/Mar/16  Updated: 19/Mar/16  Resolved: 19/Mar/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Mark Cockram Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: arrow, entity, event


 Description   

When the ProjectileLaunchEvent is cancalled, the item which is being used will still be taken from the players inventory.
Simply adding a new arrow doesn't fix this because you can't tell which item was taken.
For example: I have two types of arrows, one normal arrow, one arrow named "Exploding arrow". I can't cancel the event to make sure the right arrow is taken from the inventory. Either both arrows are removed, or one I can't control.


Generated at Tue Apr 08 01:20:41 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.