We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5173bdd commit 759f364Copy full SHA for 759f364
1 file changed
worldedit-core/src/main/java/com/sk89q/worldedit/command/SchematicCommands.java
@@ -494,7 +494,7 @@ public Component getComponent(int number) {
494
495
String path = inRoot
496
? file.getFileName().toString()
497
- : file.toString().substring(rootDir.toString().length());
+ : rootDir.relativize(file).toString();
498
499
return TextComponent.builder()
500
.content("")
0 commit comments