From 9c705fe4936de02f26a289e825be76fc3fd093eb Mon Sep 17 00:00:00 2001 From: hsgamer Date: Tue, 12 Nov 2024 01:36:18 +0700 Subject: [PATCH] use ArrayList for event consumer list --- ui/src/main/java/me/hsgamer/hscore/ui/BaseUI.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/main/java/me/hsgamer/hscore/ui/BaseUI.java b/ui/src/main/java/me/hsgamer/hscore/ui/BaseUI.java index 8ed9999e8..3f4482882 100644 --- a/ui/src/main/java/me/hsgamer/hscore/ui/BaseUI.java +++ b/ui/src/main/java/me/hsgamer/hscore/ui/BaseUI.java @@ -2,14 +2,15 @@ import org.jetbrains.annotations.NotNull; -import java.util.LinkedList; +import java.util.ArrayList; +import java.util.List; import java.util.function.Consumer; /** * The base implementation for {@link UI} */ public abstract class BaseUI implements UI { - private final LinkedList> eventConsumerList = new LinkedList<>(); + private final List> eventConsumerList = new ArrayList<>(); /** * Add an event consumer