Copy NBT in legacy dragon fight converter

This commit is contained in:
Joe 2023-09-06 18:33:31 -07:00 committed by Spottedleaf
parent 471f4de9c4
commit 33bec7f20a

View file

@ -18618,7 +18618,7 @@ index 0000000000000000000000000000000000000000..bec25939a78141d989414a5d4f33ce13
+}
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V3459.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V3459.java
new file mode 100644
index 0000000000000000000000000000000000000000..21cd3a4252ba57f088105b6fdf2ebb659c00afd3
index 0000000000000000000000000000000000000000..86509b2fa3c83dc485776d36b7bc2944b1f9a0b5
--- /dev/null
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V3459.java
@@ -0,0 +1,34 @@
@ -18648,7 +18648,7 @@ index 0000000000000000000000000000000000000000..21cd3a4252ba57f088105b6fdf2ebb65
+
+ final MapType<String> endData = dimensionData.getMap("1");
+ if (endData != null) {
+ data.setMap("DragonFight", endData.getMap("DragonFight", endData.getTypeUtil().createEmptyMap()));
+ data.setMap("DragonFight", endData.getMap("DragonFight", endData.getTypeUtil().createEmptyMap()).copy());
+ }
+
+ return null;