From c3f4e805687ece41f40d89294fda40fc70257363 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 17 May 2022 18:53:09 +0100 Subject: [PATCH] libreforge-updater --- eco-core/build.gradle | 2 +- .../java/com/willfp/ecoenchants/display/EnchantDisplay.java | 6 +++++- gradle.properties | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/eco-core/build.gradle b/eco-core/build.gradle index e003f012..05b9ea4d 100644 --- a/eco-core/build.gradle +++ b/eco-core/build.gradle @@ -3,6 +3,6 @@ version rootProject.version subprojects { dependencies { - implementation 'com.willfp:libreforge:3.45.0' + implementation 'com.willfp:libreforge:3.45.1' } } 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 3de899fd..8efe0831 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 @@ -197,7 +197,11 @@ public class EnchantDisplay extends DisplayModule { lore.addAll(requirementLore); fastItemStack.setLore(lore); - fastItemStack.addItemFlags(ItemFlag.HIDE_ENCHANTS); + if (itemStack.getType() == Material.ENCHANTED_BOOK) { + fastItemStack.addItemFlags(ItemFlag.HIDE_ENCHANTS, ItemFlag.HIDE_POTION_EFFECTS); + } else { + fastItemStack.addItemFlags(ItemFlag.HIDE_ENCHANTS); + } if (itemStack.getType() == Material.ENCHANTED_BOOK) { fastItemStack.addItemFlags(ItemFlag.HIDE_POTION_EFFECTS); } diff --git a/gradle.properties b/gradle.properties index cd0ce427..542ea7b4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ #libreforge-updater -#Mon May 16 21:44:59 BST 2022 -version=8.67.0 +#Tue May 17 18:53:09 BST 2022 +version=8.67.1 plugin-name=EcoEnchants