neoforged / NeoForge

Neo Modding API for Minecraft, based on Forge
https://projects.neoforged.net/neoforged/neoforge
Other
1.23k stars 179 forks source link

PlayerDestroyItemEvent firing when giving an item to an Allay #1563

Open Direwolf20-MC opened 1 month ago

Direwolf20-MC commented 1 month ago

Minecraft Version: 1.21.1

NeoForge Version: 21.1.21 (Pretty sure it also applies to newer ones as well though)

Logs: {Link(s) to GitHub Gist with full latest.log and/or crash report}

Steps to Reproduce:

  1. Give an Item to an Allay
  2. See that the PlayerDestroyItemEvent is fired (Image below with an example) image

Description of issue: Giving an Item to an Allay causes the PlayerDestroyItemEvent to fire, as shown in the above screenshot.

Direwolf20-MC commented 1 week ago

Just updating to say that I believe this also happens when placing an item in an item frame.