mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
11 lines
666 B
Diff
11 lines
666 B
Diff
--- a/net/minecraft/server/commands/GiveCommand.java
|
|
+++ b/net/minecraft/server/commands/GiveCommand.java
|
|
@@ -66,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);
|
|
if (itemEntity != null) {
|