mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 14:30:17 +01:00
Fix incorrect parameter
This commit is contained in:
parent
860fd573b1
commit
f9b6563aa8
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 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);
|
final ItemEntity droppedEntity = this.getHandle().drop(dropContent, throwRandomly, true);
|
||||||
if (droppedEntity == null) {
|
if (droppedEntity == null) {
|
||||||
|
|
Loading…
Reference in a new issue