From 736ba10c536587f39c8210df987451e4a938479b Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Sun, 20 May 2018 22:00:22 +0200 Subject: [PATCH] Fixes https://github.com/tastybento/bskyblock/issues/166 --- .../bskyblock/listeners/flags/HurtingListener.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/us/tastybento/bskyblock/listeners/flags/HurtingListener.java b/src/main/java/us/tastybento/bskyblock/listeners/flags/HurtingListener.java index 48bd3cac6..2b24f42d8 100644 --- a/src/main/java/us/tastybento/bskyblock/listeners/flags/HurtingListener.java +++ b/src/main/java/us/tastybento/bskyblock/listeners/flags/HurtingListener.java @@ -67,7 +67,7 @@ public class HurtingListener extends AbstractFlagListener { * @param damager * @param hurtMobs */ - private void respond(Event event, Entity damager, Flag hurtMobs) { + private void respond(EntityDamageByEntityEvent event, Entity damager, Flag hurtMobs) { // Get the attacker if (damager instanceof Player) { setUser(User.getInstance(damager)).checkIsland(event, damager.getLocation(), hurtMobs); @@ -76,12 +76,11 @@ public class HurtingListener extends AbstractFlagListener { Projectile p = (Projectile) damager; if (p.getShooter() instanceof Player) { if (!setUser(User.getInstance((Player)p.getShooter())).checkIsland(event, damager.getLocation(), hurtMobs)) { - damager.setFireTicks(0); + event.getEntity().setFireTicks(0); damager.remove(); } } } - } /**