Skip to content

Commit

Permalink
fix: Fixed NameTagService
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeGodSRC committed Aug 24, 2024
1 parent 1bd2278 commit 84f5f05
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public class NameTagService {
private final AtomicInteger teamId = new AtomicInteger(0);
private final Map<NameTag, NameTagData> nameTagData = new ConcurrentHashMap<>();
private final List<NameTagAdapter> nameTagAdapters = new LinkedList<>();
private final Scheduler scheduler = MCSchedulers.getGlobalScheduler();

private final ContainerContext containerContext;
private final MCPlayerRegistry mcPlayerRegistry;
Expand All @@ -81,7 +80,7 @@ public void onPreInitialize() {
}

private CompletableFuture<?> runAsync(Runnable runnable) {
return this.scheduler.schedule(() -> {
return MCSchedulers.getGlobalScheduler().schedule(() -> {
try {
runnable.run();
} catch (Throwable throwable) {
Expand Down

0 comments on commit 84f5f05

Please sign in to comment.