Made damage sources display the player's name

This commit is contained in:
Ellpeck 2016-06-08 19:11:06 +02:00
parent 1547fdaa9e
commit ddaadd25d5

View file

@ -32,6 +32,6 @@ public class DamageSources extends DamageSource{
@Override
public ITextComponent getDeathMessage(EntityLivingBase entity){
String locTag = "death."+ModUtil.MOD_ID+"."+this.damageType+"."+(Util.RANDOM.nextInt(this.messageCount)+1);
return new TextComponentTranslation(String.format(locTag, entity.getName()));
return new TextComponentTranslation(locTag, entity.getName());
}
}