From 104d55c11b460b3fb14d6eb81eacea53dc16da76 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 17 Feb 2021 15:49:51 +0000 Subject: [PATCH] Changed load order again --- .../java/com/willfp/eco/util/plugin/AbstractEcoPlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eco-util/src/main/java/com/willfp/eco/util/plugin/AbstractEcoPlugin.java b/eco-util/src/main/java/com/willfp/eco/util/plugin/AbstractEcoPlugin.java index be88514dc..03a9d9943 100644 --- a/eco-util/src/main/java/com/willfp/eco/util/plugin/AbstractEcoPlugin.java +++ b/eco-util/src/main/java/com/willfp/eco/util/plugin/AbstractEcoPlugin.java @@ -159,7 +159,7 @@ public abstract class AbstractEcoPlugin extends JavaPlugin { * The display module for the plugin. */ @Getter - private final DisplayModule displayModule; + private DisplayModule displayModule; /** * If the server is running an outdated version of the plugin. @@ -199,8 +199,6 @@ protected AbstractEcoPlugin(@NotNull final String pluginName, this.langYml = new Lang(this); this.configYml = new Config(this); - this.displayModule = createDisplayModule(); - LOADED_ECO_PLUGINS.add(this.getName().toLowerCase()); } @@ -301,6 +299,8 @@ public final void onLoad() { * Default code to be executed after the server is up. */ public final void afterLoad() { + this.displayModule = createDisplayModule(); + this.getPacketAdapters().forEach(abstractPacketAdapter -> { if (abstractPacketAdapter.isPostLoad()) { abstractPacketAdapter.register();