Remove unecessary parameter

This commit is contained in:
nossr50 2019-05-14 15:29:15 -07:00
parent 34869914c4
commit e70e5b04b5
2 changed files with 3 additions and 4 deletions

View File

@ -397,10 +397,10 @@ public class EntityListener implements Listener {
{ {
if(attacker instanceof LivingEntity) if(attacker instanceof LivingEntity)
{ {
CombatUtils.fixNames(event, (LivingEntity) attacker); CombatUtils.fixNames((LivingEntity) attacker);
} }
CombatUtils.fixNames(event, target); CombatUtils.fixNames(target);
} }
} }

View File

@ -363,10 +363,9 @@ public final class CombatUtils {
/** /**
* This cleans up names from displaying in chat as hearts * This cleans up names from displaying in chat as hearts
* @param event target event
* @param entity target entity * @param entity target entity
*/ */
public static void fixNames(EntityDamageByEntityEvent event, LivingEntity entity) public static void fixNames(LivingEntity entity)
{ {
List<MetadataValue> metadataValue = entity.getMetadata("mcMMO_oldName"); List<MetadataValue> metadataValue = entity.getMetadata("mcMMO_oldName");