mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 06:50:12 +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;
|
||||
}
|
||||
|
||||
private Item dropItemRaw(final ItemStack is, final @Nullable UUID thrower, final boolean throwRandomly) {
|
||||
if (is == null || is.isEmpty()) {
|
||||
private Item dropItemRaw(final ItemStack itemStack, final @Nullable UUID thrower, final boolean throwRandomly) {
|
||||
if (itemStack == null || itemStack.isEmpty()) {
|
||||
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) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue