Don't bother doing MovePreviousLevelFiles() if possible

This commit is contained in:
UnknownShadow200 2017-04-10 18:31:33 +10:00
parent 3bbe26dc5e
commit 9bcfbef842

View File

@ -69,6 +69,8 @@ namespace MCGalaxy.Tasks {
internal static void MovePreviousLevelFiles() {
if (!Directory.Exists("levels")) return;
if (Directory.Exists("levels/prev")) return;
try {
string[] files = Directory.GetFiles("levels", "*.prev");
if (files.Length == 0) return;