mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +01:00
Fix suggestions for ResourceLocation (#11830)
This commit is contained in:
parent
af2812fb0f
commit
0efd3012c9
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ public final class EntityCommand implements PaperSubcommand {
|
|||
if (args.length == 1) {
|
||||
return CommandUtil.getListMatchingLast(sender, args, "help", "list");
|
||||
} 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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue