From 7967bfc9f89b1387b8a91d74b17b533ce26c30e2 Mon Sep 17 00:00:00 2001 From: Paul Reilly Date: Fri, 7 Apr 2023 16:28:13 -0500 Subject: [PATCH] Dumb thing 1 --- .../me/totalfreedom/totalfreedommod/perms/TrackWrapper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commons/src/main/java/me/totalfreedom/totalfreedommod/perms/TrackWrapper.java b/commons/src/main/java/me/totalfreedom/totalfreedommod/perms/TrackWrapper.java index 8d2f244c..d5421944 100644 --- a/commons/src/main/java/me/totalfreedom/totalfreedommod/perms/TrackWrapper.java +++ b/commons/src/main/java/me/totalfreedom/totalfreedommod/perms/TrackWrapper.java @@ -3,6 +3,7 @@ package me.totalfreedom.totalfreedommod.perms; import net.luckperms.api.track.Track; import net.luckperms.api.track.TrackManager; +import java.util.HashSet; import java.util.Set; import java.util.concurrent.CompletableFuture; @@ -14,7 +15,8 @@ public class TrackWrapper public TrackWrapper(TrackManager manager) { this.manager = manager; - this.trackSet = manager.getLoadedTracks(); + this.trackSet = new HashSet<>(); + trackSet.addAll(manager.getLoadedTracks()); } public CompletableFuture getTrack(String name)