mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-14 13:43:55 +01:00
Rename parameter
This commit is contained in:
parent
a7b44331b4
commit
63a52404b0
1 changed files with 3 additions and 3 deletions
|
@ -839,12 +839,12 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
|
||||||
return itemEntity;
|
return itemEntity;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Item dropItemRaw(final ItemStack is, final @Nullable UUID thrower, final boolean throwRandomly) {
|
private Item dropItemRaw(final ItemStack itemStack, final @Nullable UUID thrower, final boolean throwRandomly) {
|
||||||
if (is == null || is.isEmpty()) {
|
if (itemStack == null || itemStack.isEmpty()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
final ItemEntity droppedEntity = this.getHandle().drop(CraftItemStack.asNMSCopy(is), throwRandomly);
|
final ItemEntity droppedEntity = this.getHandle().drop(CraftItemStack.asNMSCopy(itemStack), throwRandomly);
|
||||||
if (droppedEntity == null) {
|
if (droppedEntity == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue