Fix suggestions for ResourceLocation (#11830)

This commit is contained in:
YoungSoulluoS
2024-12-27 04:07:02 +05:00
committed by GitHub
parent af2812fb0f
commit 0efd3012c9

View File

@@ -48,7 +48,7 @@ public final class EntityCommand implements PaperSubcommand {
if (args.length == 1) { if (args.length == 1) {
return CommandUtil.getListMatchingLast(sender, args, "help", "list"); return CommandUtil.getListMatchingLast(sender, args, "help", "list");
} else if (args.length == 2) { } else if (args.length == 2) {
return CommandUtil.getListMatchingLast(sender, args, BuiltInRegistries.ENTITY_TYPE.keySet().stream().map(ResourceLocation::toString).sorted().toArray(String[]::new)); return CommandUtil.getListMatchingLast(sender, args, BuiltInRegistries.ENTITY_TYPE.keySet());
} }
return Collections.emptyList(); return Collections.emptyList();
} }