We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb0d193 commit aba1110Copy full SHA for aba1110
1 file changed
modules/library/src/main/java/top/mrxiaom/pluginbase/utils/AdventureItemStack.java
@@ -269,9 +269,13 @@ public static HoverEventSource<?> toHoverEvent(ItemStack item) {
269
} else { // 未知格式
270
itemTag = BinaryTagHolder.binaryTagHolder("{}");
271
}
272
+
273
+ int count = nbt.hasTag("Count")
274
+ ? nbt.getInteger("Count")
275
+ : nbt.getInteger("count");
276
return HoverEvent.showItem(
277
Key.key(nbt.getString("id"), ':'),
- nbt.getInteger("count"),
278
+ count,
279
itemTag);
280
281
0 commit comments