mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
12 lines
570 B
Diff
12 lines
570 B
Diff
|
--- a/net/minecraft/server/commands/CommandGive.java
|
||
|
+++ b/net/minecraft/server/commands/CommandGive.java
|
||
|
@@ -59,7 +59,7 @@
|
||
|
|
||
|
if (flag && itemstack.isEmpty()) {
|
||
|
itemstack.setCount(1);
|
||
|
- entityitem = entityplayer.drop(itemstack, false);
|
||
|
+ entityitem = entityplayer.drop(itemstack, false, false, false); // SPIGOT-2942: Add boolean to call event
|
||
|
if (entityitem != null) {
|
||
|
entityitem.makeFakeItem();
|
||
|
}
|