diff --git a/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/HolographicDisplays.java b/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/HolographicDisplays.java index c6747e0b..fdb0ccb6 100644 --- a/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/HolographicDisplays.java +++ b/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/HolographicDisplays.java @@ -135,7 +135,7 @@ public class HolographicDisplays extends FCommonsPlugin { // Enable the APIs HolographicDisplaysAPIProvider.setImplementation( new DefaultHolographicDisplaysAPIProvider(apiHologramManager, nmsManager, placeholderRegistry)); - enableLegacyAPI(apiHologramManager, nmsManager, placeholderRegistry); + enableLegacyAPI(apiHologramManager, placeholderRegistry); // Register bStats metrics int pluginID = 3123; @@ -150,11 +150,8 @@ public class HolographicDisplays extends FCommonsPlugin { } @SuppressWarnings("deprecation") - private void enableLegacyAPI(APIHologramManager apiHologramManager, NMSManager nmsManager, PlaceholderRegistry placeholderRegistry) { - HologramsAPIProvider.setImplementation(new V2HologramsAPIProvider( - apiHologramManager, - nmsManager, - placeholderRegistry)); + private void enableLegacyAPI(APIHologramManager apiHologramManager, PlaceholderRegistry placeholderRegistry) { + HologramsAPIProvider.setImplementation(new V2HologramsAPIProvider(apiHologramManager, placeholderRegistry)); } public void load(boolean deferHologramsCreation, ErrorCollector errorCollector) { diff --git a/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/api/v2/V2HologramsAPIProvider.java b/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/api/v2/V2HologramsAPIProvider.java index 3f941812..65c62891 100644 --- a/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/api/v2/V2HologramsAPIProvider.java +++ b/plugin/src/main/java/me/filoghost/holographicdisplays/plugin/api/v2/V2HologramsAPIProvider.java @@ -9,7 +9,6 @@ import com.gmail.filoghost.holographicdisplays.api.Hologram; import com.gmail.filoghost.holographicdisplays.api.internal.HologramsAPIProvider; import com.gmail.filoghost.holographicdisplays.api.placeholder.PlaceholderReplacer; import me.filoghost.fcommons.Preconditions; -import me.filoghost.holographicdisplays.common.nms.NMSManager; import me.filoghost.holographicdisplays.plugin.hologram.api.APIHologram; import me.filoghost.holographicdisplays.plugin.hologram.api.APIHologramManager; import me.filoghost.holographicdisplays.plugin.placeholder.registry.PlaceholderRegistry; @@ -27,12 +26,10 @@ import java.util.List; public class V2HologramsAPIProvider extends HologramsAPIProvider { private final APIHologramManager apiHologramManager; - private final NMSManager nmsManager; private final PlaceholderRegistry placeholderRegistry; - public V2HologramsAPIProvider(APIHologramManager apiHologramManager, NMSManager nmsManager, PlaceholderRegistry placeholderRegistry) { + public V2HologramsAPIProvider(APIHologramManager apiHologramManager, PlaceholderRegistry placeholderRegistry) { this.apiHologramManager = apiHologramManager; - this.nmsManager = nmsManager; this.placeholderRegistry = placeholderRegistry; }