craftbukkit/nms-patches/net/minecraft/server/commands/CommandGive.patch

12 lines
581 B
Diff
Raw Normal View History

--- a/net/minecraft/server/commands/CommandGive.java
+++ b/net/minecraft/server/commands/CommandGive.java
2024-04-24 01:15:00 +10:00
@@ -60,7 +60,7 @@
EntityItem entityitem;
2023-06-08 01:30:00 +10:00
if (flag && itemstack1.isEmpty()) {
2024-04-24 01:15:00 +10:00
- entityitem = entityplayer.drop(itemstack, false);
+ entityitem = entityplayer.drop(itemstack, false, false, false); // CraftBukkit - SPIGOT-2942: Add boolean to call event
if (entityitem != null) {
entityitem.makeFakeItem();
}