From 11ca0d9ff101cd77f5e26dcacbc3a666c4ac305e Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Tue, 4 Feb 2020 23:36:54 +0000 Subject: [PATCH] Fix 1.13.x archery compat --- src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java index fa6e052b9..42afeeca3 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java @@ -221,7 +221,7 @@ public final class CombatUtils { } - private static void processArcheryCombat(LivingEntity target, Player player, EntityDamageByEntityEvent event, AbstractArrow arrow) { + private static void processArcheryCombat(LivingEntity target, Player player, EntityDamageByEntityEvent event, Projectile arrow) { double initialDamage = event.getDamage(); McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player); @@ -381,7 +381,7 @@ public final class CombatUtils { } } else if (entityType == EntityType.ARROW || entityType == EntityType.SPECTRAL_ARROW) { - AbstractArrow arrow = (AbstractArrow) damager; + Projectile arrow = (Projectile) damager; ProjectileSource projectileSource = arrow.getShooter(); if (projectileSource != null && projectileSource instanceof Player && PrimarySkillType.ARCHERY.shouldProcess(target)) {