From fec2d1af03793a1626b6f321ee4d5aa51ed472de Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Fri, 4 Feb 2022 23:14:31 -0600 Subject: [PATCH] Fix webpath update path --- DynmapCore/src/main/java/org/dynmap/DynmapCore.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DynmapCore/src/main/java/org/dynmap/DynmapCore.java b/DynmapCore/src/main/java/org/dynmap/DynmapCore.java index 91235f51..534cf5c8 100644 --- a/DynmapCore/src/main/java/org/dynmap/DynmapCore.java +++ b/DynmapCore/src/main/java/org/dynmap/DynmapCore.java @@ -2810,7 +2810,8 @@ public class DynmapCore implements DynmapCommonAPI { File df = this.getDataFolder(); if(df.exists() == false) df.mkdirs(); 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 prevwebver = "1.6"; if (ver.exists()) { @@ -2895,7 +2896,7 @@ public class DynmapCore implements DynmapCommonAPI { if (!updatewebpathfiles) { continue; } - f = new File(this.getWebPath(), n.substring("web/".length())); + f = new File(wpath, n.substring("web/".length())); } else { f = new File(df, n);