Fix item effects conversion if no tag is present

Fixes #9796
This commit is contained in:
Nassim Jahnke 2023-10-05 16:03:26 +10:00
parent 8ae1a1746e
commit 5944323d84

View File

@ -19352,6 +19352,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+ final MapType<String> tag = root.getMap("tag");
+
+ if (tag == null) {
+ return null;
+ }
+
+ if ("minecraft:suspicious_stew".equals(id)) {
+ RenameHelper.renameSingle(tag, "Effects", "effects");
+