mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 17:44:46 +00:00
Final & Synchronized Data sending with slight delays to heavily improve server performance
This commit is contained in:
1 parent
ee33a57323
commit
cf82314181
8 files changed
+47
-36
No files matched your search
@@ -257,9 +257,9 @@ public class PlayerDataController {
|
||||
return new NBTTagCompound();
|
||||
}
|
||||
|
||||
public synchronized void savePlayerData(PlayerData data){
|
||||
NBTTagCompound compound = data.getNBT();
|
||||
String filename = data.uuid + ".json";
|
||||
public synchronized void savePlayerData(final PlayerData data){
|
||||
final NBTTagCompound compound = data.getNBT();
|
||||
final String filename = data.uuid + ".json";
|
||||
|
||||
CustomNPCsScheduler.runTack(() -> {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user