mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
61052d56b5
- Add missing CraftBukkit comment to CommandGive - Remove no longer needed IRegistryCustom from CraftStructure conversion - Use setBasePotionType instead of deprecated setBasePotionData By: DerFrZocker <derrieple@gmail.com>
11 lines
588 B
Diff
11 lines
588 B
Diff
--- a/net/minecraft/server/commands/CommandGive.java
|
|
+++ b/net/minecraft/server/commands/CommandGive.java
|
|
@@ -61,7 +61,7 @@
|
|
|
|
if (flag && itemstack1.isEmpty()) {
|
|
itemstack1.setCount(1);
|
|
- entityitem = entityplayer.drop(itemstack1, false);
|
|
+ entityitem = entityplayer.drop(itemstack1, false, false, false); // CraftBukkit - SPIGOT-2942: Add boolean to call event
|
|
if (entityitem != null) {
|
|
entityitem.makeFakeItem();
|
|
}
|