From f9b6563aa8380a183e2adb2cc9d48f6f3e464cae Mon Sep 17 00:00:00 2001 From: Strokkur24 <133226102+Strokkur424@users.noreply.github.com> Date: Wed, 25 Dec 2024 01:09:38 +0100 Subject: [PATCH] Fix incorrect parameter --- .../java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index 003046799b..80f130dbc9 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -839,7 +839,7 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity { } final net.minecraft.world.item.ItemStack nmsItemStack = CraftItemStack.unwrap(originalItemStack); - final net.minecraft.world.item.ItemStack dropContent = nmsItemStack.split(originalItemStack.getAmount()); + final net.minecraft.world.item.ItemStack dropContent = nmsItemStack.split(amount); final ItemEntity droppedEntity = this.getHandle().drop(dropContent, throwRandomly, true); if (droppedEntity == null) {