Skip to content

Commit

Permalink
fix cursed knight and soothsayer not working
Browse files Browse the repository at this point in the history
  • Loading branch information
MelanX committed Nov 18, 2023
1 parent 6b9e52b commit bc3921f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/melanx/ultimatools/item/UltimaTool.java
Expand Up @@ -144,7 +144,7 @@ public boolean hurtEnemy(@Nonnull ItemStack stack, @Nonnull LivingEntity target,
if (this.hitEntity != null && attacker instanceof Player) {
if (!attacker.getCommandSenderWorld().isClientSide) {
Player player = (Player) attacker;
if (player.getCooldowns().isOnCooldown(this)) {
if (!player.getCooldowns().isOnCooldown(this)) {
if (this.hitEntity.apply(target, player)) {
if (!player.isCreative()) player.getCooldowns().addCooldown(this, this.cooldown);
player.swing(InteractionHand.MAIN_HAND, false);
Expand Down

0 comments on commit bc3921f

Please sign in to comment.