mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 03:55:18 -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() {
|
internal static void MovePreviousLevelFiles() {
|
||||||
if (!Directory.Exists("levels")) return;
|
if (!Directory.Exists("levels")) return;
|
||||||
|
if (Directory.Exists("levels/prev")) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
string[] files = Directory.GetFiles("levels", "*.prev");
|
string[] files = Directory.GetFiles("levels", "*.prev");
|
||||||
if (files.Length == 0) return;
|
if (files.Length == 0) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user