Adding database and soil localisation

This commit is contained in:
Nedelosk committed 2016-10-26 23:23:47 +02:00
1 parent 7e9a87f08b
commit a300bc0a11
13 files changed
+71 -33

No files matched your search

@@ -129,10 +129,13 @@ public class ItemBotany extends Item implements IColoredItem, IItemModelRegister
@Override
public String getItemStackDisplayName(final ItemStack itemstack) {
if (!itemstack.hasTagCompound()) {
return "Unknown";
return Binnie.Language.localise("item.botany.flower.corrupted.name");
}
final IIndividual individual = this.getIndividual(itemstack);
return (individual != null && individual.getGenome() != null) ? (individual.getDisplayName() + tag) : "Corrupted Flower";
IIndividual individual = this.getIndividual(itemstack);
if (individual != null && individual.getGenome() != null) {
return individual.getDisplayName() + (!tag.isEmpty() ? " " + Binnie.Language.localise("item.botany." + tag + ".name") : "");
}
return Binnie.Language.localise("item.botany.flower.corrupted.name");
}
@Override