From f8736c8188f29a8cce39234603d1ef00534d19fc Mon Sep 17 00:00:00 2001 From: tr7zw Date: Tue, 27 Aug 2024 18:07:27 +0200 Subject: [PATCH] Also update old items with "Count" tags --- .../main/java/de/tr7zw/changeme/nbtapi/NBTReflectionUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/item-nbt-api/src/main/java/de/tr7zw/changeme/nbtapi/NBTReflectionUtil.java b/item-nbt-api/src/main/java/de/tr7zw/changeme/nbtapi/NBTReflectionUtil.java index 733f2d303..45707fe70 100644 --- a/item-nbt-api/src/main/java/de/tr7zw/changeme/nbtapi/NBTReflectionUtil.java +++ b/item-nbt-api/src/main/java/de/tr7zw/changeme/nbtapi/NBTReflectionUtil.java @@ -213,7 +213,7 @@ public static Object convertNBTCompoundtoNMSItem(NBTCompound nbtcompound) { try { Object nmsComp = getToCompount(nbtcompound.getCompound(), nbtcompound); if (MinecraftVersion.isAtLeastVersion(MinecraftVersion.MC1_20_R4)) { - if (nbtcompound.hasTag("tag")) { + if (nbtcompound.hasTag("tag") || nbtcompound.hasTag("Count")) { nmsComp = DataFixerUtil.fixUpRawItemData(nmsComp, DataFixerUtil.VERSION1_20_4, DataFixerUtil.getCurrentVersion()); }