mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 16:58:34 +01:00
Made damage sources display the player's name
This commit is contained in:
parent
1547fdaa9e
commit
ddaadd25d5
1 changed files with 1 additions and 1 deletions
|
@ -32,6 +32,6 @@ public class DamageSources extends DamageSource{
|
||||||
@Override
|
@Override
|
||||||
public ITextComponent getDeathMessage(EntityLivingBase entity){
|
public ITextComponent getDeathMessage(EntityLivingBase entity){
|
||||||
String locTag = "death."+ModUtil.MOD_ID+"."+this.damageType+"."+(Util.RANDOM.nextInt(this.messageCount)+1);
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue