forked from SteamWar/SteamWar
Fix path issues
This commit is contained in:
@@ -201,8 +201,8 @@ public class ServerStarter {
|
|||||||
|
|
||||||
private void tempWorld(String template) {
|
private void tempWorld(String template) {
|
||||||
worldDir = TEMP_WORLD_PATH;
|
worldDir = TEMP_WORLD_PATH;
|
||||||
worldSetup = () -> copyWorld(node, template, worldDir + worldName);
|
worldSetup = () -> copyWorld(node, template, new File(worldDir, worldName).getPath());
|
||||||
worldCleanup = () -> SubserverSystem.deleteFolder(node, worldDir + worldName);
|
worldCleanup = () -> SubserverSystem.deleteFolder(node, new File(worldDir, worldName).getPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buildWithTemp(Player owner) {
|
private void buildWithTemp(Player owner) {
|
||||||
@@ -396,4 +396,4 @@ public class ServerStarter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user