Fix schematic list box loading schems with spaces in path.

Dieser Commit ist enthalten in:
wizjany 2019-08-08 10:14:16 -04:00 committet von GitHub
Ursprung 17cfdee347
Commit 0e25839490
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -434,7 +434,7 @@ public class SchematicCommands {
.content("") .content("")
.append(TextComponent.of("[L]") .append(TextComponent.of("[L]")
.color(TextColor.GOLD) .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")))) .hoverEvent(HoverEvent.of(HoverEvent.Action.SHOW_TEXT, TextComponent.of("Click to load"))))
.append(TextComponent.space()) .append(TextComponent.space())
.append(TextComponent.of(path) .append(TextComponent.of(path)