[SPIGOT-7280] Endereye consumption triggers are broken Created: 25/Feb/23 Updated: 25/Dec/24 |
|
Status: | Open |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Brian Fopiano | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 0 |
Labels: | 1.19.3, EnderEye, bug, event, spigot, trigger | ||
Environment: |
Freshly built spigot from BT. Ender eye trigger now happens before I can cancel Can confirm this happens outside of my environment as well. Test: try throwing a stack of 1 Endereye's ender pearls are working normally |
Version: | 3661 |
Plugin: | Not Applicable |
Guidelines Read: | Yes |
Description |
Here is the situation: And let me preface that I'm not a new developer or anything, I just want to ensure nothing has changed from 1.19.2-1.19.3 that I'm not heretical about.
Here is where the issue is: PlayerInteractEventItemStack{AIR x 0} ItemStack{ENDER_PEARL x 1} (this reflects the pearl) Endereye: PlayerInteractEventItemStack{AIR x 0} ItemStack{AIR x 0} (this SHOULD) reflect the ender eye, but it does not.
This is my check as a snippet: so you can see what im replicating: @EventHandler public void on(PlayerInteractEvent e) { Plugin.info("PlayerInteractEvent" + e.getPlayer().getInventory().getItemInOffHand() + " " + e.getPlayer().getInventory().getItemInMainHand()); ... and here is a gif of the situation:
Now, i already looked around but i could have totally missed the change if you changed where this event trigger for endereyes is, but i dont think thats the prpblem, nor do I think you would change that. |
Comments |
Comment by md_5 [ 10/Mar/23 ] |
The problem is due to client packets there are multiple events triggered. Check that the event is the one you want (right click). That one has the correct amount |