Skip to content

Commit

Permalink
Backup path in server.properties should default to relative path inst…
Browse files Browse the repository at this point in the history
…ead of absolute path
  • Loading branch information
UnknownShadow200 committed Mar 5, 2020
1 parent eed903c commit 84cf737
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MCGalaxy/Server/ServerConfig.cs
Expand Up @@ -97,7 +97,7 @@ public sealed class ServerConfig : EnvConfig {
[ConfigTimespan("blockdb-backup-time", "Backup", 60, false)]
public TimeSpan BlockDBSaveInterval = TimeSpan.FromSeconds(60);
[ConfigString("backup-location", "Backup", "")]
public string BackupDirectory = Path.Combine(Utils.FolderPath, "levels/backups");
public string BackupDirectory = "levels/backups";

[ConfigTimespan("afk-minutes", "Other", 10, true)]
public TimeSpan AutoAfkTime = TimeSpan.FromMinutes(10);
Expand Down
2 changes: 1 addition & 1 deletion MCGalaxy/Server/ServerProperties.cs
Expand Up @@ -64,7 +64,7 @@ public static class SrvProperties {
#pragma warning restore 0618

if (!Directory.Exists(Server.Config.BackupDirectory))
Server.Config.BackupDirectory = Path.Combine(Utils.FolderPath, "levels/backups");
Server.Config.BackupDirectory = "levels/backups";

Save();
Server.SetMainLevel(Server.Config.MainLevel);
Expand Down

0 comments on commit 84cf737

Please sign in to comment.