Fix lodestone compass target conversion

This commit is contained in:
Joseph Burton 2024-05-04 12:58:06 +02:00
parent 4a8b9a03eb
commit 128ea2f10b

View file

@ -22841,10 +22841,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ components.remove("minecraft:lodestone_target"); + components.remove("minecraft:lodestone_target");
+ components.setMap("minecraft:lodestone_tracker", oldTarget); + components.setMap("minecraft:lodestone_tracker", oldTarget);
+ +
+ final Object pos = oldTarget.getMap("pos"); + final Object pos = oldTarget.getGeneric("pos");
+ final Object dim = oldTarget.getMap("dimension"); + final Object dim = oldTarget.getGeneric("dimension");
+ +
+ if (pos == null && dim == null) { + if (pos == null || dim == null) {
+ return null; + return null;
+ } + }
+ +