diff options
author | 2024-12-31 14:09:45 -0500 | |
---|---|---|
committer | 2024-12-31 14:09:45 -0500 | |
commit | 251daee895c9c0ad839ed9022ea43fb2d369e16c (patch) | |
tree | 55d363882701665d0d4d5c8b8d50e6275668f3f4 | |
parent | 263695053d997e75ec4a10f0de3ea0cb8a0de80c (diff) | |
download | meteor-trashy-addon-dev.tar.xz |
-rw-r--r-- | src/main/java/org/chrisoft/trashyaddon/commands/MapLocateCommand.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/chrisoft/trashyaddon/commands/MapLocateCommand.java b/src/main/java/org/chrisoft/trashyaddon/commands/MapLocateCommand.java index a96b52b..6f747df 100644 --- a/src/main/java/org/chrisoft/trashyaddon/commands/MapLocateCommand.java +++ b/src/main/java/org/chrisoft/trashyaddon/commands/MapLocateCommand.java @@ -36,9 +36,9 @@ public class MapLocateCommand extends Command { private void exec(int id, Color color) { try { CEntityArgumentType dummyArgIF = CEntityArgumentType.entities(); - CEntitySelector esIF = dummyArgIF.parse(new StringReader(new Formatter().format("@e[type=minecraft:item_frame,nbt={Item:{tag:{map:%d}}}]", id).toString())); + CEntitySelector esIF = dummyArgIF.parse(new StringReader(new Formatter().format("@e[type=minecraft:item_frame,nbt={Item:{components:{\"minecraft:map_id\":%d}}}]", id).toString())); CEntityArgumentType dummyArgGIF = CEntityArgumentType.entities(); - CEntitySelector esGIF = dummyArgGIF.parse(new StringReader(new Formatter().format("@e[type=minecraft:glow_item_frame,nbt={Item:{tag:{map:%d}}}]", id).toString())); + CEntitySelector esGIF = dummyArgGIF.parse(new StringReader(new Formatter().format("@e[type=minecraft:glow_item_frame,nbt={Item:{components:{\"minecraft:map_id\":%d}}}]", id).toString())); List<? extends Entity> l1 = esIF.getClientSideEntityMatches(mc.world, mc.player.getPos()); List<? extends Entity> l2 = esGIF.getClientSideEntityMatches(mc.world, mc.player.getPos()); if (l1.isEmpty() && l2.isEmpty()) { |