mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-27 23:45:44 +00:00
(Same as #7758 for 1.16) The PlayerEntity#dropItem(ItemStack, boolean) method (PlayerEntity#drop(ItemStack, boolean) for mojmap), does not pass the second argument, the 'includeName' flag, on to the ItemTossEvent. This leads to situations where the player drops an item and the resulting ItemEntity does not have a thrower id. For example, items thrown by a player from inside a ContainerScreen do not have a thrower id. This pull request passes the 'includeName' flag on to the ItemTossEvent, thus resolving the issue.