Fix async access to file

This commit is contained in:
Daniel Ciepluch 2020-03-30 23:12:24 +02:00 committed by Brianna
parent b21c33538b
commit 70e561c54f

View File

@ -132,7 +132,7 @@ public final class UserCacheManager {
Bukkit.getServer().getScheduler().runTaskAsynchronously(skyblock, () -> save());
}
public void save() {
public synchronized void save() {
try {
config.getFileConfiguration().save(config.getFile());
} catch (IOException e) {