From d4918868ea49296ad0fa7ec35ce664f29ccf75e3 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 6 Mar 2021 10:58:47 +0000 Subject: [PATCH] Fixed casting the wrong var --- .../willfp/ecoenchants/enchantments/util/EnchantmentUtils.java | 2 +- settings.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/EnchantmentUtils.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/EnchantmentUtils.java index 6d1e8912..cee6e3cf 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/EnchantmentUtils.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/util/EnchantmentUtils.java @@ -38,7 +38,7 @@ public class EnchantmentUtils { public static boolean isFullyChargeIfRequired(@NotNull final EcoEnchant enchantment, @NotNull final LivingEntity entity) { if (entity instanceof Player) { - if (PlayerUtils.getAttackCooldown((Player) enchantment) != 1.0f) { + if (PlayerUtils.getAttackCooldown((Player) entity) != 1.0f) { return enchantment.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "allow-not-fully-charged"); } } diff --git a/settings.gradle b/settings.gradle index f032784c..c7edc6e6 100644 --- a/settings.gradle +++ b/settings.gradle @@ -17,7 +17,7 @@ include ':eco-extensions:biomes' include ':eco-extensions:effects' include ':eco-extensions:endershot' include ':eco-extensions:firewand' -include ':eco-extensions:mmo' +//include ':eco-extensions:mmo' include ':eco-extensions:precision' include ':eco-extensions:rainbow' include ':eco-extensions:sprint-artifacts'