Rename parameter

This commit is contained in:
Strokkur24 2024-12-24 13:21:40 +01:00
parent a7b44331b4
commit 63a52404b0
No known key found for this signature in database

View file

@ -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;
}