aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoseph Burton <[email protected]>2024-05-04 12:58:06 +0200
committerNassim Jahnke <[email protected]>2024-05-04 12:58:06 +0200
commit156675c773bf09679ed7b163b6c9b46f0ccb8070 (patch)
treee7ddcf149377b652050e1c1b35a03ddf4bf8bc5c
parent0db72ac19e735d398e85b2152d5a32317bb03dc8 (diff)
downloadPaper-156675c773bf09679ed7b163b6c9b46f0ccb8070.tar.gz
Paper-156675c773bf09679ed7b163b6c9b46f0ccb8070.zip
Fix lodestone compass target conversion
-rw-r--r--patches/server/0976-Rewrite-dataconverter-system.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0976-Rewrite-dataconverter-system.patch b/patches/server/0976-Rewrite-dataconverter-system.patch
index d12fd08743..8b59af4e35 100644
--- a/patches/server/0976-Rewrite-dataconverter-system.patch
+++ b/patches/server/0976-Rewrite-dataconverter-system.patch
@@ -22782,7 +22782,7 @@ index 0000000000000000000000000000000000000000..29d256c2f5d5e338dc7abeb82c0f1ae9
+}
diff --git a/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V3820.java b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V3820.java
new file mode 100644
-index 0000000000000000000000000000000000000000..0635b81924d4431fdfbcdd3814eaf01f85e53787
+index 0000000000000000000000000000000000000000..c45dda60ed8da6802181f7f169a5b97f591b00ee
--- /dev/null
+++ b/src/main/java/ca/spottedleaf/dataconverter/minecraft/versions/V3820.java
@@ -0,0 +1,78 @@
@@ -22841,10 +22841,10 @@ index 0000000000000000000000000000000000000000..0635b81924d4431fdfbcdd3814eaf01f
+ components.remove("minecraft:lodestone_target");
+ components.setMap("minecraft:lodestone_tracker", oldTarget);
+
-+ final Object pos = oldTarget.getMap("pos");
-+ final Object dim = oldTarget.getMap("dimension");
++ final Object pos = oldTarget.getGeneric("pos");
++ final Object dim = oldTarget.getGeneric("dimension");
+
-+ if (pos == null && dim == null) {
++ if (pos == null || dim == null) {
+ return null;
+ }
+