Implemented Async World-Data Loading

Uses Mutex to assure no concurrent loading and saving
Merges Loaded data in Main Thread
This commit is contained in:
Sn0wStorm
2020-04-07 12:45:55 +02:00
parent f4bfdfa595
commit cae2b9dfff
9 changed files with 251 additions and 86 deletions
+4
View File
@@ -266,4 +266,8 @@ public class Wakeup {
}
}
public static void onUnload(String worldName) {
wakeups.removeIf(wakeup -> wakeup.loc.getWorld().getName().equals(worldName));
}
}