Fix limits

This commit is contained in:
IronApollo
2020-09-15 22:34:45 -04:00
committed by dordsor21
parent 07a5ef5ab4
commit f5f5a55b4c
3 changed files with 8 additions and 58 deletions

View File

@ -721,7 +721,11 @@ public final class PlatformCommandManager {
}
actor.printError(e.getRichMessage());
} catch (CommandExecutionException e) {
handleUnknownException(actor, e.getCause());
if (e.getCause() instanceof FaweException) {
actor.printError(TranslatableComponent.of("fawe.cancel.worldedit.cancel.reason", ((FaweException)e.getCause()).getComponent()));
} else {
handleUnknownException(actor, e.getCause());
}
} catch (CommandException e) {
Component msg = e.getRichMessage();
if (msg != TextComponent.empty()) {