mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-20 10:17:34 -04:00
Don't bother doing MovePreviousLevelFiles() if possible
This commit is contained in:
parent
3bbe26dc5e
commit
9bcfbef842
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user