Fix incorrect parameter

This commit is contained in:
Strokkur24 2024-12-25 01:09:38 +01:00
parent 860fd573b1
commit f9b6563aa8
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 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) {