mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Fix lodestone compass target conversion
This commit is contained in:
parent
4a8b9a03eb
commit
128ea2f10b
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue