mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 20:09:49 +00:00
Merge pull request #173 from KAMKEEL/codex/fix-profile-saving-and-slot-id-issues
Fix profile login save and clarify async behavior
This commit is contained in:
3 files changed
+14
-2
No files matched your search
@@ -4,5 +4,10 @@ import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
public class CustomNPCsThreader {
|
||||
/**
|
||||
* Executor used for all asynchronous profile and player data saves.
|
||||
* It is single-threaded so submitted tasks run sequentially and the
|
||||
* save order for a given player is preserved.
|
||||
*/
|
||||
public static final Executor customNPCThread = Executors.newSingleThreadExecutor();
|
||||
}
|
||||
Reference in new issue
Block a user