From a7a7fcc68b6f01d8c2ee1b34d4601764c9ac1708 Mon Sep 17 00:00:00 2001 From: filoghost Date: Sun, 2 May 2021 20:32:39 +0200 Subject: [PATCH] Use ArrayList instead of LinkedList --- .../holographicdisplays/object/api/APIHologramManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/me/filoghost/holographicdisplays/object/api/APIHologramManager.java b/plugin/src/main/java/me/filoghost/holographicdisplays/object/api/APIHologramManager.java index 235f3a06..8b3bc1f9 100644 --- a/plugin/src/main/java/me/filoghost/holographicdisplays/object/api/APIHologramManager.java +++ b/plugin/src/main/java/me/filoghost/holographicdisplays/object/api/APIHologramManager.java @@ -12,9 +12,9 @@ import me.filoghost.holographicdisplays.placeholder.PlaceholderManager; import org.bukkit.Location; import org.bukkit.plugin.Plugin; +import java.util.ArrayList; import java.util.Collection; import java.util.Collections; -import java.util.LinkedList; import java.util.List; public class APIHologramManager extends BaseHologramManager { @@ -34,7 +34,7 @@ public class APIHologramManager extends BaseHologramManager { } public Collection getHologramsByPlugin(Plugin plugin) { - List ownedHolograms = new LinkedList<>(); + List ownedHolograms = new ArrayList<>(); for (APIHologram hologram : getHolograms()) { if (hologram.getOwnerPlugin().equals(plugin)) {