mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-19 09:27:43 +01:00
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
11 lines
747 B
Diff
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) {
|