Use UUIDs for task tracking

This commit is contained in:
William committed 2023-06-02 14:01:56 +01:00
1 parent da27cac435
commit d3248aae83
8 files changed
+47 -45

No files matched your search

@@ -96,7 +96,7 @@ public class FabricHuskHomes implements DedicatedServerModInitializer, HuskHomes
private final ModContainer modContainer = FabricLoader.getInstance()
.getModContainer("huskhomes").orElseThrow(() -> new RuntimeException("Failed to get Mod Container"));
private MinecraftServer minecraftServer;
private ConcurrentHashMap<Integer, CompletableFuture<?>> tasks;
private ConcurrentHashMap<UUID, CompletableFuture<?>> tasks;
private Map<String, Boolean> permissions;
private Set<SavedUser> savedUsers;
private Settings settings;
@@ -481,7 +481,7 @@ public class FabricHuskHomes implements DedicatedServerModInitializer, HuskHomes
@Override
@NotNull
public ConcurrentHashMap<Integer, CompletableFuture<?>> getTasks() {
public ConcurrentHashMap<UUID, CompletableFuture<?>> getTasks() {
return tasks;
}