mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-28 16:05:14 +01:00
Fixed casting the wrong var
This commit is contained in:
parent
893d3eefb5
commit
d4918868ea
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user