This commit is contained in:
Chayapak 2023-10-03 06:50:59 +07:00
parent fc7139f548
commit 8756b86524

View file

@ -34,7 +34,7 @@ public class PersistentDataUtilities {
future = Main.executor.scheduleAtFixedRate(() -> { future = Main.executor.scheduleAtFixedRate(() -> {
// TODO: thread-safe // TODO: thread-safe
try { try {
if (queue.size() == 0) return; if (queue.isEmpty()) return;
final Map.Entry<String, JsonElement> entry = queue.entrySet().iterator().next(); // is this the best way to get the first item of the map? final Map.Entry<String, JsonElement> entry = queue.entrySet().iterator().next(); // is this the best way to get the first item of the map?