mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Remove unecessary parameter
This commit is contained in:
parent
34869914c4
commit
e70e5b04b5
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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> metadataValue = entity.getMetadata("mcMMO_oldName");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user