Fix webpath update path
This commit is contained in:
parent
a45c000632
commit
e8f5221501
1 changed files with 3 additions and 2 deletions
|
|
@ -2810,7 +2810,8 @@ public class DynmapCore implements DynmapCommonAPI {
|
||||||
File df = this.getDataFolder();
|
File df = this.getDataFolder();
|
||||||
if(df.exists() == false) df.mkdirs();
|
if(df.exists() == false) df.mkdirs();
|
||||||
File ver = new File(df, "version.txt");
|
File ver = new File(df, "version.txt");
|
||||||
File webver = new File(this.getWebPath(), "version.txt");
|
File wpath = this.getFile(this.getWebPath());
|
||||||
|
File webver = new File(wpath, "version.txt");
|
||||||
String prevver = "1.6";
|
String prevver = "1.6";
|
||||||
String prevwebver = "1.6";
|
String prevwebver = "1.6";
|
||||||
if (ver.exists()) {
|
if (ver.exists()) {
|
||||||
|
|
@ -2895,7 +2896,7 @@ public class DynmapCore implements DynmapCommonAPI {
|
||||||
if (!updatewebpathfiles) {
|
if (!updatewebpathfiles) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
f = new File(this.getWebPath(), n.substring("web/".length()));
|
f = new File(wpath, n.substring("web/".length()));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
f = new File(df, n);
|
f = new File(df, n);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue