diff --git a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java index 1ceb994f9..7681e196a 100644 --- a/src/main/java/com/gmail/nossr50/listeners/EntityListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/EntityListener.java @@ -397,10 +397,10 @@ public class EntityListener implements Listener { { if(attacker instanceof LivingEntity) { - CombatUtils.fixNames(event, (LivingEntity) attacker); + CombatUtils.fixNames((LivingEntity) attacker); } - CombatUtils.fixNames(event, target); + CombatUtils.fixNames(target); } } 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 497782a80..6a8d1e755 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java @@ -363,10 +363,9 @@ public final class CombatUtils { /** * This cleans up names from displaying in chat as hearts - * @param event target event * @param entity target entity */ - public static void fixNames(EntityDamageByEntityEvent event, LivingEntity entity) + public static void fixNames(LivingEntity entity) { List metadataValue = entity.getMetadata("mcMMO_oldName");