[SPIGOT-2242] PlayerPickupArrowEvent#getItem does not respond to changes in the item Created: 02/May/16 Updated: 10/Dec/16 Resolved: 10/Dec/16 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Jacob Crofts | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | 1.9, arrow, pickup | ||
Environment: |
irrelevant in this case |
Description |
We should be able to change the item that gets picked up in PlayerPickupArrowEvent like so: @EventHandler public void onPlayerPickupArrow(PlayerPickupArrowEvent event) { Item item = event.getItem(); item.setItemStack(new ItemStack(Material.STICK, 1)); } This code has no effect on the item that gets picked up. |