Files
Purpur/purpur-server/minecraft-patches/sources/net/minecraft/server/commands/GiveCommand.java.patch
granny f5b99917e6 Updated Upstream (Paper)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@57c202e0 Allow adventure nbt codec to parse all tags
PaperMC/Paper@4d854e66 Disable MC-163962 fix by default
PaperMC/Paper@dda39a0f 1.21.7-rc2
PaperMC/Paper@7f609243 Configuration API (#12301)
PaperMC/Paper@371a4225 Remove a bunch more experimental annotations (#12712)
PaperMC/Paper@a9f74cbf Readd dropped diff during 1.21.6
2025-06-30 12:06:18 -07:00

11 lines
747 B
Diff

--- a/net/minecraft/server/commands/GiveCommand.java
+++ b/net/minecraft/server/commands/GiveCommand.java
@@ -69,6 +_,7 @@
i1 -= min;
ItemStack itemStack1 = item.createItemStack(min, false);
boolean flag = serverPlayer.getInventory().add(itemStack1);
+ if (org.purpurmc.purpur.PurpurConfig.disableGiveCommandDrops) continue; // Purpur - add config option for toggling give command dropping
if (flag && itemStack1.isEmpty()) {
ItemEntity itemEntity = serverPlayer.drop(itemStack, false, false, false, null); // Paper - do not fire PlayerDropItemEvent for /give command
if (itemEntity != null) {