Skip to content

Commit

Permalink
fix(command-lamp): Disabled command alias detection
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Apr 8, 2024
1 parent 77906f9 commit 45b26b3
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,8 @@ public MindustryCommandHandler register(final Object... commands) {
super.register(commands);
for (final ExecutableCommand command : this.executables.values()) {
if (command.getParent() != null) continue;
createArcCommand(
command.getName(),
descriptionMapper.map(LampElement.Command.of(command)),
this.executables.values().stream()
.anyMatch((ExecutableCommand cmd) -> cmd.getId() == command.getId()));
// TODO Try to find a good way to detect aliases
createArcCommand(command.getName(), descriptionMapper.map(LampElement.Command.of(command)), false);
}
for (final CommandCategory category : this.categories.values()) {
if (category.getParent() != null) continue;
Expand Down

0 comments on commit 45b26b3

Please sign in to comment.