Fixed villager career display names being off by one.

This commit is contained in:
LexManos 2016-06-18 11:54:46 -07:00
parent aacb319594
commit 5c15dd714e

View file

@ -147,7 +147,7 @@
} }
- if (s1 != null) - if (s1 != null)
+ s1 = "entity.Villager." + this.getProfessionForge().getCareer(this.field_175563_bv).getName(); + s1 = "entity.Villager." + this.getProfessionForge().getCareer(this.field_175563_bv-1).getName();
{ {
- TextComponentTranslation textcomponenttranslation = new TextComponentTranslation("entity.Villager." + s1, new Object[0]); - TextComponentTranslation textcomponenttranslation = new TextComponentTranslation("entity.Villager." + s1, new Object[0]);
+ TextComponentTranslation textcomponenttranslation = new TextComponentTranslation(s1, new Object[0]); + TextComponentTranslation textcomponenttranslation = new TextComponentTranslation(s1, new Object[0]);