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)