diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index b5ab7da618..bdb5ec8511 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -456,12 +456,6 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity { return getHandle().isUsingItem(); } - @Override - public ItemStack getItemInUse() { - net.minecraft.world.item.ItemStack item = getHandle().getUseItem(); - return item.isEmpty() ? null : CraftItemStack.asCraftMirror(item); - } - @Override public boolean setWindowProperty(InventoryView.Property prop, int value) { return false; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java index fd3d0a6762..ef21e57929 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java @@ -258,6 +258,12 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity { getHandle().maxAirTicks = ticks; } + @Override + public ItemStack getItemInUse() { + net.minecraft.world.item.ItemStack item = getHandle().getUseItem(); + return item.isEmpty() ? null : CraftItemStack.asCraftMirror(item); + } + @Override public int getItemInUseTicks() { return getHandle().getUseItemRemainingTicks();