mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 07:49:03 +00:00
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:
@@ -266,4 +266,8 @@ public class Wakeup {
|
||||
}
|
||||
}
|
||||
|
||||
public static void onUnload(String worldName) {
|
||||
wakeups.removeIf(wakeup -> wakeup.loc.getWorld().getName().equals(worldName));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user