Skip to content

Commit

Permalink
use ArrayList for event consumer list
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Nov 11, 2024
1 parent 9ccf7a6 commit 9c705fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/main/java/me/hsgamer/hscore/ui/BaseUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Consumer<Object>> eventConsumerList = new LinkedList<>();
private final List<Consumer<Object>> eventConsumerList = new ArrayList<>();

/**
* Add an event consumer
Expand Down

0 comments on commit 9c705fe

Please sign in to comment.