From 45b26b38385108218ceb95c0394afcd9775bc380 Mon Sep 17 00:00:00 2001 From: phinner <62483793+phinner@users.noreply.github.com> Date: Tue, 9 Apr 2024 00:46:02 +0200 Subject: [PATCH] fix(command-lamp): Disabled command alias detection --- .../command/lamp/MindustryCommandHandlerImpl.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/distributor-command-lamp/src/main/java/com/xpdustry/distributor/command/lamp/MindustryCommandHandlerImpl.java b/distributor-command-lamp/src/main/java/com/xpdustry/distributor/command/lamp/MindustryCommandHandlerImpl.java index b32b9e24..2c067fd4 100644 --- a/distributor-command-lamp/src/main/java/com/xpdustry/distributor/command/lamp/MindustryCommandHandlerImpl.java +++ b/distributor-command-lamp/src/main/java/com/xpdustry/distributor/command/lamp/MindustryCommandHandlerImpl.java @@ -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;