mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-07-03 20:18:51 +00:00
12 lines
615 B
Diff
12 lines
615 B
Diff
--- a/net/minecraft/server/commands/CommandGive.java
|
|
+++ b/net/minecraft/server/commands/CommandGive.java
|
|
@@ -53,7 +53,7 @@
|
|
boolean flag = entityplayer.getInventory().add(itemstack1);
|
|
|
|
if (flag && itemstack1.isEmpty()) {
|
|
- EntityItem entityitem = entityplayer.drop(itemstack, false);
|
|
+ EntityItem entityitem = entityplayer.drop(itemstack, false, false, false); // CraftBukkit - SPIGOT-2942: Add boolean to call event
|
|
|
|
if (entityitem != null) {
|
|
entityitem.makeFakeItem();
|