//schematic list breaks when using ../../ to store schematic files
MrStefanW opened this issue ยท 0 comments
Versions
WorldEdit version: worldedit-bukkit-7.1.0
Platform version: Paper version git-Paper-385 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
Describe the bug
In the config when using ../../folder to store schematics, creating and loading schematics works fine, but it's not able to get the schematic list
To Reproduce
- Go to the world edit config, and set the schematics folder to ../../schematics
- Create a new folder in the server root folder called schematics
- Boot up your server, create a schematic, and type //schematic list
Expected behavior
It should give you a list what schematics are stored
Screenshots
Additional context
[01:09:43 ERROR]: Uncaught exception occurred in task: null
java.lang.ArrayIndexOutOfBoundsException: 1
at com.sk89q.worldedit.command.SchematicCommands$SchematicPaginationBox.getComponent(SchematicCommands.java:439) ~[?:?]
at com.sk89q.worldedit.util.formatting.component.PaginationBox.create(PaginationBox.java:91) ~[?:?]
at com.sk89q.worldedit.command.SchematicCommands$SchematicListTask.call(SchematicCommands.java:400) ~[?:?]
at com.sk89q.worldedit.command.SchematicCommands$SchematicListTask.call(SchematicCommands.java:356) ~[?:?]
at com.sk89q.worldedit.command.util.AsyncCommandBuilder.runTask(AsyncCommandBuilder.java:139) ~[?:?]
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:111) ~[patched_1.15.2.jar:git-Paper-385]
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:58) ~[patched_1.15.2.jar:git-Paper-385]
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:75) ~[patched_1.15.2.jar:git-Paper-385]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_251]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_251]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_251]