3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-27 03:12:37 +01:00

Fix some command errors being hidden by a usage message

Dieser Commit ist enthalten in:
dordsor21 2021-09-20 23:18:38 +01:00
Ursprung 040edc8fd0
Commit 9d26f030dc
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -780,11 +780,13 @@ public final class PlatformCommandManager {
actor.print(Caption.of("fawe.cancel.worldedit.cancel.reason", ((FaweException) e.getCause()).getComponent())); actor.print(Caption.of("fawe.cancel.worldedit.cancel.reason", ((FaweException) e.getCause()).getComponent()));
} else { } else {
Component msg = e.getRichMessage(); Component msg = e.getRichMessage();
if (msg != TextComponent.empty()) { if (msg == TextComponent.empty()) {
List<String> argList = parseArgs(event.getArguments()) List<String> argList = parseArgs(event.getArguments())
.map(Substring::getSubstring) .map(Substring::getSubstring)
.collect(Collectors.toList()); .collect(Collectors.toList());
printUsage(actor, argList); printUsage(actor, argList);
} else {
actor.printError(msg);
} }
} }
} catch (Throwable t) { } catch (Throwable t) {