fix ItemStack#asHoverEvent

This commit is contained in:
Calvin 2021-12-14 19:46:29 -08:00 committed by TheMode
parent e56d82eb2a
commit 02cc29cd06

View File

@ -246,7 +246,7 @@ public final class ItemStack implements TagReadable, HoverEventSource<HoverEvent
public @NotNull HoverEvent<HoverEvent.ShowItem> asHoverEvent(@NotNull UnaryOperator<HoverEvent.ShowItem> op) {
return HoverEvent.showItem(op.apply(HoverEvent.ShowItem.of(this.material,
this.amount,
NBTUtils.asBinaryTagHolder(this.meta.toNBT().getCompound("tag")))));
NBTUtils.asBinaryTagHolder(this.meta.toNBT()))));
}
/**