From 03318369ae36d6d5120f316818ec02d424574e1f Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 2 May 2018 02:15:03 +1000 Subject: [PATCH] Catch Exception (legacy sk89q command utils) --- .../sk89q/worldedit/command/HelpBuilder.java | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/core/src/main/java/com/sk89q/worldedit/command/HelpBuilder.java b/core/src/main/java/com/sk89q/worldedit/command/HelpBuilder.java index a0ad5430..4e46d23f 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/HelpBuilder.java +++ b/core/src/main/java/com/sk89q/worldedit/command/HelpBuilder.java @@ -7,20 +7,9 @@ import com.sk89q.minecraft.util.commands.Command; import com.sk89q.minecraft.util.commands.CommandContext; import com.sk89q.worldedit.WorldEdit; import com.sk89q.worldedit.extension.platform.CommandManager; -import com.sk89q.worldedit.util.command.CommandCallable; -import com.sk89q.worldedit.util.command.CommandMapping; -import com.sk89q.worldedit.util.command.DelegateCallable; -import com.sk89q.worldedit.util.command.Dispatcher; -import com.sk89q.worldedit.util.command.PrimaryAliasComparator; +import com.sk89q.worldedit.util.command.*; import com.sk89q.worldedit.util.command.parametric.ParametricCallable; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.TreeMap; +import java.util.*; public abstract class HelpBuilder implements Runnable { private final CommandCallable callable; @@ -57,7 +46,7 @@ public abstract class HelpBuilder implements Runnable { } effectiveLength--; } - } catch (NumberFormatException ignored) { + } catch (Exception ignored) { } boolean isRootLevel = true;