aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/chrisoft/trashyaddon/commands/MapLocateCommand.java4
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()) {