From 2548b955ac2dc320ac860d0ac34b773b00d42c57 Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Tue, 3 Sep 2019 15:33:07 -0400 Subject: [PATCH] Remove immutable list from brushes to prevent possible startup issue. --- .../worldedit/extension/platform/PlatformCommandManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java index e0b5d7f60..d3e1e6e98 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformCommandManager.java @@ -35,6 +35,7 @@ import com.boydti.fawe.util.TaskManager; import com.boydti.fawe.wrappers.LocationMaskedPlayerWrapper; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; import com.google.common.reflect.TypeToken; import com.sk89q.worldedit.EditSession; import com.sk89q.worldedit.IncompleteRegionException; @@ -397,7 +398,7 @@ public final class PlatformCommandManager { ); registerSubCommands( "brush", - ImmutableList.of("br", "/brush", "/br", "/tool", "tool"), + Lists.newArrayList("br", "/brush", "/br", "/tool", "tool"), "Brushing commands", commandManager, c -> {