From 73776cfec4326c0938a06f78fa99a458c300fd83 Mon Sep 17 00:00:00 2001 From: tr7zw Date: Sat, 2 Nov 2024 15:18:16 +0100 Subject: [PATCH] Sneak quick fix into release --- .../java/de/tr7zw/changeme/nbtapi/utils/DataFixerUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/item-nbt-api/src/main/java/de/tr7zw/changeme/nbtapi/utils/DataFixerUtil.java b/item-nbt-api/src/main/java/de/tr7zw/changeme/nbtapi/utils/DataFixerUtil.java index db6a605a3..331036999 100644 --- a/item-nbt-api/src/main/java/de/tr7zw/changeme/nbtapi/utils/DataFixerUtil.java +++ b/item-nbt-api/src/main/java/de/tr7zw/changeme/nbtapi/utils/DataFixerUtil.java @@ -63,7 +63,9 @@ public static ReadWriteNBT fixUpItemData(ReadWriteNBT nbt, int fromVersion, int * @return */ public static int getCurrentVersion() { - if (MinecraftVersion.isAtLeastVersion(MinecraftVersion.MC1_21_R1)) { + if (MinecraftVersion.isAtLeastVersion(MinecraftVersion.MC1_21_R2)) { + return VERSION1_21_2; + } else if (MinecraftVersion.isAtLeastVersion(MinecraftVersion.MC1_21_R1)) { return VERSION1_21; } else if (MinecraftVersion.isAtLeastVersion(MinecraftVersion.MC1_20_R4)) { return VERSION1_20_5;