Pass the 'includeName' flag to the ItemTossEvent (#7758)

This commit is contained in:
SuperMartijn642 authored and GitHub committed 2021-07-24 16:54:24 +02:00
1 parent 064ae6961b
commit 98bae44a3a
1 file changed
+1 -1
@@ -84,7 +84,7 @@
@Nullable
public ItemEntity func_71019_a(ItemStack p_71019_1_, boolean p_71019_2_) {
- return this.func_146097_a(p_71019_1_, false, p_71019_2_);
+ return net.minecraftforge.common.ForgeHooks.onPlayerTossEvent(this, p_71019_1_, false);
+ return net.minecraftforge.common.ForgeHooks.onPlayerTossEvent(this, p_71019_1_, p_71019_2_);
}
@Nullable