From 0e25839490fefeffabae83b206b9b374b0fa85f0 Mon Sep 17 00:00:00 2001 From: wizjany Date: Thu, 8 Aug 2019 10:14:16 -0400 Subject: [PATCH] Fix schematic list box loading schems with spaces in path. --- .../java/com/sk89q/worldedit/command/SchematicCommands.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java index a2b59ffbd..07425d35a 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java @@ -434,7 +434,7 @@ public class SchematicCommands { .content("") .append(TextComponent.of("[L]") .color(TextColor.GOLD) - .clickEvent(ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "/schem load " + path)) + .clickEvent(ClickEvent.of(ClickEvent.Action.RUN_COMMAND, "/schem load \"" + path + "\"")) .hoverEvent(HoverEvent.of(HoverEvent.Action.SHOW_TEXT, TextComponent.of("Click to load")))) .append(TextComponent.space()) .append(TextComponent.of(path)