mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-02-02 13:41:21 +01:00
Fix empty path resolving
This commit is contained in:
parent
015b38311d
commit
85f5d8947b
@ -113,6 +113,7 @@ private synchronized void tidy() {
|
||||
}
|
||||
|
||||
private Path resolve(String path) {
|
||||
if (path.isEmpty() || "/".equals(path)) return folder.toPath();
|
||||
if (File.separatorChar != '/') path = path.replace('/', File.separatorChar);
|
||||
if (path.charAt(0) == '/') path = path.substring(1);
|
||||
Path resolve = folder.toPath();
|
||||
|
Loading…
Reference in New Issue
Block a user