Final & Synchronized Data sending with slight delays to heavily improve server performance

This commit is contained in:
Kam committed 2023-05-15 20:03:52 -04:00
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 {