mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-12-01 06:53:24 +01:00
Merge branch 'mc/1.13' into mc/1.12
This commit is contained in:
commit
533d5e86be
@ -113,6 +113,7 @@ private synchronized void tidy() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Path resolve(String path) {
|
private Path resolve(String path) {
|
||||||
|
if (path.isEmpty() || "/".equals(path)) return folder.toPath();
|
||||||
if (File.separatorChar != '/') path = path.replace('/', File.separatorChar);
|
if (File.separatorChar != '/') path = path.replace('/', File.separatorChar);
|
||||||
if (path.charAt(0) == '/') path = path.substring(1);
|
if (path.charAt(0) == '/') path = path.substring(1);
|
||||||
Path resolve = folder.toPath();
|
Path resolve = folder.toPath();
|
||||||
|
Loading…
Reference in New Issue
Block a user