From 860fd573b1b99af897a8b5320289f009f8abad1d Mon Sep 17 00:00:00 2001 From: Strokkur24 <133226102+Strokkur424@users.noreply.github.com> Date: Wed, 25 Dec 2024 01:07:44 +0100 Subject: [PATCH] Remove unrequired Math.min --- .../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 865ab02e4e..003046799b 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(Math.min(originalItemStack.getAmount(), amount)); + final net.minecraft.world.item.ItemStack dropContent = nmsItemStack.split(originalItemStack.getAmount()); final ItemEntity droppedEntity = this.getHandle().drop(dropContent, throwRandomly, true); if (droppedEntity == null) {