mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
06bac38719
By: DerFrZocker <derrieple@gmail.com>
11 lines
570 B
Diff
11 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();
|
|
}
|