Fix saving after unlock

This commit is contained in:
Stijn committed 2022-06-06 21:48:29 +02:00
1 parent 49bbf4fe1b
commit f167e43d4b
2 files changed
+21 -20

No files matched your search

@@ -58,12 +58,8 @@ public class EconUser {
uuid.toString(), getPointsMap().object2ObjectEntrySet().stream()
.map(entry -> entry.getKey() + " - " + entry.getValue().toString())
.collect(Collectors.joining("\n")));
new BukkitRunnable() {
@Override
public void run() {
Queries.updateUserPoints(uuid, pointsMap);
}
}.runTaskAsynchronously(VillagerUI.getInstance());
Queries.updateUserPoints(uuid, pointsMap);
}
private void removePoints(String villagerType, int points, int remove)