refactor: use @p[... instead of @a[limit=1,... on selector

This commit is contained in:
ChomeNS
2025-03-06 09:26:35 +07:00
parent 60bf424f27
commit d962fa325b
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
1698
1699

View File

@@ -51,7 +51,7 @@ public class UUIDUtilities {
}
public static String selector (UUID uuid) { return selector(uuid, true); }
public static String selector (UUID uuid, boolean end) { return "@a[limit=1,nbt={UUID:" + snbt(uuid) + "}" + (end ? "]" : ""); }
public static String selector (UUID uuid, boolean end) { return "@p[nbt={UUID:" + snbt(uuid) + "}" + (end ? "]" : ""); }
public static String exclusiveSelector (UUID uuid) { return exclusiveSelector(uuid, true); }
public static String exclusiveSelector (UUID uuid, boolean end) { return "@a[nbt=!{UUID:" + snbt(uuid) + "}" + (end ? "]" : ""); }