Fixed casting the wrong var

This commit is contained in:
Auxilor 2021-03-06 10:58:47 +00:00
parent 893d3eefb5
commit d4918868ea
2 changed files with 2 additions and 2 deletions

View File

@ -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");
}
}

View File

@ -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'