Skip to content
Permalink
Browse files

Fix schematic list box loading schems with spaces in path.

  • Loading branch information...
wizjany committed Aug 8, 2019
1 parent 17cfdee commit 0e25839490fefeffabae83b206b9b374b0fa85f0
@@ -434,7 +434,7 @@ public Component getComponent(int number) {
.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)

0 comments on commit 0e25839

Please sign in to comment.
You can’t perform that action at this time.