From 81c104fc15b6ff0988e523cbd086e784de62d66a Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 17 Feb 2021 15:42:40 +0000 Subject: [PATCH] Fixed EnchantDisplay --- .../java/com/willfp/ecoenchants/display/EnchantDisplay.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantDisplay.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantDisplay.java index 8ea41888..0349e875 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantDisplay.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/display/EnchantDisplay.java @@ -37,13 +37,13 @@ public class EnchantDisplay extends DisplayModule { * EcoEnchants packet lore implementation of HideEnchants. */ @Getter - private final NamespacedKey keySkip = this.getPlugin().getNamespacedKeyFactory().create("ecoenchantlore-skip"); + private final NamespacedKey keySkip; /** * The configurable options for displaying enchantments. */ @Getter - private final DisplayOptions options = new DisplayOptions(this.getPlugin()); + private final DisplayOptions options; /** * Create EcoEnchants display module. @@ -52,6 +52,8 @@ public class EnchantDisplay extends DisplayModule { */ public EnchantDisplay(@NotNull final AbstractEcoPlugin plugin) { super(plugin, DisplayPriority.HIGH); + keySkip = this.getPlugin().getNamespacedKeyFactory().create("ecoenchantlore-skip"); + options = new DisplayOptions(this.getPlugin()); } /**