Remove unrequired Math.min

This commit is contained in:
Strokkur24 2024-12-25 01:07:44 +01:00
parent a675dbe509
commit 860fd573b1
No known key found for this signature in database

View file

@ -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 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); final ItemEntity droppedEntity = this.getHandle().drop(dropContent, throwRandomly, true);
if (droppedEntity == null) { if (droppedEntity == null) {