mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 14:30:17 +01:00
Remove unrequired Math.min
This commit is contained in:
parent
a675dbe509
commit
860fd573b1
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue