mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-06 07:32:07 +01:00
Fix lodestone compass target conversion
This commit is contained in:
parent
4a8b9a03eb
commit
128ea2f10b
@ -22841,10 +22841,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ 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;
|
||||
+ }
|
||||
+
|
||||
|
Loading…
Reference in New Issue
Block a user