Avoid saving profile on every login

This commit is contained in:
Kam committed 2025-07-07 05:50:29 -04:00
1 parent 18c6221dc0
commit 6bad9163a0
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();
}