From c6db11a10b0a5b0c4dee64e129bc51e69cf7ef9a Mon Sep 17 00:00:00 2001 From: GJ Date: Tue, 12 Jun 2012 10:23:34 -0400 Subject: [PATCH] Use EntityDamage event instead of EntityDamageByEnitity --- .../gmail/nossr50/skills/acrobatics/AcrobaticsManager.java | 3 +-- .../gmail/nossr50/skills/acrobatics/DodgeEventHandler.java | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsManager.java b/src/main/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsManager.java index 5c7e0079b..96ef6a3c7 100644 --- a/src/main/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsManager.java +++ b/src/main/java/com/gmail/nossr50/skills/acrobatics/AcrobaticsManager.java @@ -1,7 +1,6 @@ package com.gmail.nossr50.skills.acrobatics; import org.bukkit.entity.Player; -import org.bukkit.event.entity.EntityDamageByEntityEvent; import org.bukkit.event.entity.EntityDamageEvent; import com.gmail.nossr50.datatypes.PlayerProfile; @@ -48,7 +47,7 @@ public class AcrobaticsManager { * * @param event The event to check */ - public void dodgeCheck(EntityDamageByEntityEvent event) { + public void dodgeCheck(EntityDamageEvent event) { if (!permHandler.canDodge()) { return; } diff --git a/src/main/java/com/gmail/nossr50/skills/acrobatics/DodgeEventHandler.java b/src/main/java/com/gmail/nossr50/skills/acrobatics/DodgeEventHandler.java index ac0a14e18..c58be80d6 100644 --- a/src/main/java/com/gmail/nossr50/skills/acrobatics/DodgeEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/acrobatics/DodgeEventHandler.java @@ -1,6 +1,6 @@ package com.gmail.nossr50.skills.acrobatics; -import org.bukkit.event.entity.EntityDamageByEntityEvent; +import org.bukkit.event.entity.EntityDamageEvent; import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.datatypes.SkillType; @@ -9,7 +9,7 @@ import com.gmail.nossr50.util.Misc; import com.gmail.nossr50.util.Skills; public class DodgeEventHandler extends AcrobaticsEventHandler { - protected DodgeEventHandler(AcrobaticsManager manager, EntityDamageByEntityEvent event) { + protected DodgeEventHandler(AcrobaticsManager manager, EntityDamageEvent event) { super(manager, event); calculateSkillModifier();